DOpus function to emulate maketree/ZeroZipper -
Welcome Guest.   Make a donation to an author on the site July 30, 2015, 05:14:21 AM  *

Please login or register.
Or did you miss your validation email?

Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.

You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
The N.A.N.Y. Challenge 2015! Download dozens of custom programs!
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DOpus function to emulate maketree/ZeroZipper  (Read 971 times)
Supporting Member
Posts: 3,918

"This could get messy ..."

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« on: July 06, 2012, 02:54:14 AM »

Didn't quite know where to put this, (didn't want to tack it onto skwires thread), since it's kind of application specific, (ie. you need Directory Opus 10), but changing the internal DOpus arguments and replacing the second line with an external archiver will turn it into a batch command file.

Rather simple, took me a couple of minutes to write...but an hour to work out why it wasn't working.  It's only been tested on dual pane listers, it gets imported as a custom User Command and then you can add it as a Context Menu item, (ZeroArc), for folders.

Anyway, a couple of days ago I was playing around with RoboCopy, noted the /CREATE switch and the rest is history as they say.

Formatted for XML with the GeSHI Syntax Highlighter [copy or print]
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <usercommand backcol="none" hide_from_menu="no" textcol="none">
  3. <label>ZeroArc</label>
  4. <tip>Produce a file tree archive</tip>
  5. <user_label>ZeroArc</user_label>
  6. <icon1>#default:newzipfile</icon1>
  7. <function type="normal">
  8. <instruction>@runmode hide</instruction>
  9. <instruction>@nofilenamequoting</instruction>
  10. <instruction>@sync:robocopy &quot;{filepath|noterm}&quot; &quot;{destpath$}{file}&quot; /CREATE /E /np /nfl /ndl /njh /njs</instruction>
  11. <instruction>COPY MOVE ARCHIVE=.7z,KEEPFOLDER &quot;{destpath$}{file}&quot; AS &quot;{file}&quot;</instruction>
  12. </function>
  13. </usercommand>

Creates the zero length files/folder structure in the destination lister and then moves it into a 7-Zip archive - on my machine it did 27272 files/223 folders in about 20 seconds, (to RAM or HDD).

Change the .7z to .zip if you want a ZIP archive.

Anyway, hope it's useful for someone.

UPDATED: Forgot to take spaces in names into account.

* ZeroArc.7z (0.47 KB - downloaded 40 times.)
« Last Edit: July 22, 2012, 02:02:16 AM by 4wd » Logged

I do not need to control my anger ... people just need to stop pissing me off!
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register | About Us Forum | Powered by SMF
[ Page time: 0.035s | Server load: 0.08 ]

Share on Facebook
submit to reddit