Windows Task Scheduler Move File


  1. Posts : 6
    New York
       #1

    Windows Task Scheduler Move File


    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


  2. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #2

    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


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:37.
Find Us