Topic "How to subtract 1 day from batch file."

Author Message
Ashique
[View user's profile]

Joined: 2016-04-26
Posts: 1
Location: INDIA
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Your duplicate (and answered) post on Stack Overflow:
http://stackoverflow.com/q/36843474/850848
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License