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

Author Message
[View user's profile]

Joined: 2016-04-26
Posts: 1
Location: INDIA
Hi All,
This is my batch file
"C:\Program Files (x86)\WinSCP\" /command ^
"open sftp://abc@**** -hostkey=""ssh-dss 1024 xx:xx:xx:...""" ^
"get /qwe/asd/tryu/%%TIMESTAMP#ddmmyyyy%%* P:\Projects\abc\Test_bacth\Batch_download\" ^
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.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
Your duplicate (and answered) post on Stack Overflow:

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License