Topic "Copy Current Modify Date File from one location to one location"

Author Message
Jam006

Guest


HI All,

I want to copy today file(based on created date of file) from one location to one location via Winscp Script.

But i want to copy only today file(1.txt) in folder oldpath to newpath

Sample code

copy C:\oldpath\* D:\newpath

Data in old path:
1.txt (Created date file on 12-07-2017 =today)
2.txt (Created date file on 11-07-2017 )
3.txt (Created date file on 11-07-2017 )

Data newpath
1.txt after run script.

Regards,
Odom
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
WinSCP cannot copy a local file to another local location. That's not what WinSCP is for.

WinSCP is a tool to transfer files between local and remote machines.
Advertisements

You can post new topics in this forum

Search

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