Windows Task Scheduler Move File

Shloma

New member
Local time
12:36 PM
Messages
6
Hello:

Using windows task scheduler, how do I move a file to a different folder, there is a box Program/Script that can browse a file then there is a box Add arguments, where and how do I add the from and to file path

Thanks much!
 

My Computer

Computer type
PC/Desktop
OS
New York
Hi Shloma,

There is a program that comes with Windows called Robocopy. Sounds like the program you need for the task.

The basic syntax for moving files with Robocopy is
Code:
robocopy /move source_folder destination_folder files_mask

Example, if you want Task Scheduler to move all files from C:\My\Path that have extension of .txt to C:\My\Destination, the command you should schedule would look like
Code:
robocopy /move "C:\My\Path" "C:\My\Destination" "*.txt"

And moving a specific file would look something like,
Code:
robocopy /move "C:\My\Path" "C:\My\Destination" "MyFile.txt"
 

My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Back
Top