Welcome Guest.   Make a donation to an author on the site July 26, 2014, 10:13:30 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.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Getting folders only  (Read 11487 times)
imtrobin
Charter Member
***
Posts: 120

View Profile Give some DonationCredits to this forum member
« on: August 09, 2005, 10:51:55 AM »

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?

Logged
mouser
First Author
Administrator
*****
Posts: 33,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: August 09, 2005, 11:05:14 AM »

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
Logged
mouser
First Author
Administrator
*****
Posts: 33,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: August 09, 2005, 11:07:07 AM »

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.
Logged
imtrobin
Charter Member
***
Posts: 120

View Profile Give some DonationCredits to this forum member
« Reply #3 on: August 09, 2005, 11:18:21 AM »

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

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!
Logged
mouser
First Author
Administrator
*****
Posts: 33,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: August 09, 2005, 11:48:11 AM »

cool  thumbs up

if you ever forget, these options are in the help file, in the "Tips+Tricks" section.
Logged
imtrobin
Charter Member
***
Posts: 120

View Profile Give some DonationCredits to this forum member
« Reply #5 on: August 10, 2005, 12:03:00 PM »

The %NO options aren't documented.
Logged
mouser
First Author
Administrator
*****
Posts: 33,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: August 10, 2005, 12:06:36 PM »

i might need to update the help file, i have it in mine.
Logged
imtrobin
Charter Member
***
Posts: 120

View Profile Give some DonationCredits to this forum member
« Reply #7 on: August 10, 2005, 03:32:48 PM »

Hmm, I encountered a situation where the %NO doesn't work... when my folders have . in them.
Logged
mouser
First Author
Administrator
*****
Posts: 33,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: August 10, 2005, 04:03:14 PM »

if you're only working with folders try %N
Logged
mouser
First Author
Administrator
*****
Posts: 33,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: August 10, 2005, 04:03:58 PM »

did i mention i'm happy someone is actually using this programĀ  smiley

requests for new features are welcome.
Logged
imtrobin
Charter Member
***
Posts: 120

View Profile Give some DonationCredits to this forum member
« Reply #10 on: August 11, 2005, 12:46:23 AM »

thanks smiley

I'm haven't investigated this yet, but does it take into account of the return value of the command line program?

ie. most programs return 0 if successful, or some other int otherwise.

So if the return value is an error, then print out a large warning red text in the redirected window.
Logged
mouser
First Author
Administrator
*****
Posts: 33,182



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: August 11, 2005, 07:06:53 AM »

currently drag&drop doesnt pay attention to the return code, but thats a good idea for a feature to add as an option.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.032s | Server load: 0.09 ]