automate command prompt to copy file

98 Views Asked by At

I have the following file copy command.
How can I schedule this to run once a week automatically?

copy D:\SFTP*.* \location of file*.* del D:\sftp*.* /q exit

Thanks

1

There are 1 best solutions below

2
On

Task manager, set weekly and when

del d:\data\*.* /q
xcopy "C:\data\*.*" d:\data\*.* /y
del c:\data\*.* /q