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.
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.