ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Drag&Drop Robot

Getting folders only

(1/3) > >>

imtrobin:
Hi,

I have question on using Drag Drop Robot 1.08 to zip up files. The sample shows using %2 as a source parameter to the zip program.

When I drag folders into DDR, it becomes like this e.g

c:\folders\folderA
c:\folders\folderB
c:\folders\folderC

What I want is to zip up the files without the C:\folders\.. ie only relative directory structure.

Anyway I can do that without putting all the folders in C:\ drive?

mouser:
CAREFULLY try these (semi-documented) features:
   // %p = short path
   // %P = long path
   // %no = short name (without ext)
   // %NO = long name (without ext)
   // %n = short name (with ext)
   // %N = long name (with ext)
   // %e = extension

so i think if you drag+drop
c:\folders\folderA

then %p will be "C:\folders"
and %NO would be "folderA"

let me know if it works

mouser:
actually i've just read your post again
i think what you are asking is *not* how to get fields as i posted,

but you want to provide a commandline option to winzip to tell it only to store RELATIVE directory information?
is that right?

there should be a commandline option in zip/winzip for that.

imtrobin:
but you want to provide a commandline option to winzip to tell it only to store RELATIVE directory information?
is that right?
-mouser (August 09, 2005, 11:07 AM)
--- End quote ---

No. Actually I'm using winrar, but it is the same principle. The folders I drag in has the C:\Folders\folderA, and using %2 passes the whole string in meaning the zip file has a structure like so

Folders
  folderA

instead of just folderA. The %NO option works perfectly. thanks!

mouser:
cool  :up:

if you ever forget, these options are in the help file, in the "Tips+Tricks" section.

Navigation

[0] Message Index

[#] Next page

Go to full version