Computing.Net > Forums > Programming > batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file

Reply to Message Icon

Name: blessonin
Date: July 7, 2009 at 02:02:43 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

i am taking backup from psftp using the batch file,i used the psftp -pw password username@ip_address -b file_name
in the file name i am givin the command
lcd/path of the backup folder
cd /server path
mget -r
now i need to create a folder name on the particular date which i am taking the backup.I tried the lcd/md d:\%date:~7,2%_%date:~4,2%_%date:~10,4% but it is not working...can any body suggest me a way ..



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 7, 2009 at 03:13:50 Pacific
Reply:

Difficult to guess whether your substring handling is correct without knowing your date format.


=====================================
If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch file

Batch file to count a specific character in a www.computing.net/answers/programming/batch-file-to-count-a-specific-character-in-a/19751.html

FTP batch file www.computing.net/answers/programming/ftp-batch-file/9027.html

batch file www.computing.net/answers/programming/batch-file/13936.html