Copy Current Modify Date File from one location to one location

Advertisement

Jam006
Guest

Copy Current Modify Date File from one location to one location

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,095
Location:
Prague, Czechia

Re: Copy Current Modify Date File from one location to one location

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.

Reply with quote

Advertisement

You can post new topics in this forum