Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Ashique

How to subtract 1 day from batch file.

Hi All,
This is my batch file
"C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^
"open sftp://abc@****.na.ab.com/ -hostkey=""ssh-dss 1024 xx:xx:xx:...""" ^
"get /qwe/asd/tryu/%%TIMESTAMP#ddmmyyyy%%*.csv.zip P:\Projects\abc\Test_bacth\Batch_download\" ^
"exit"
pause
But when i run this i get all the data but i want only 4 folders from it.
Example today is 26 april so i want folder's which started with name 25042016 in starting of its name.
Also i need how to pass password in it.