Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows Task Scheduler Move File

20 Apr 2015   #1
Shloma

New York
 
 
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 System SpecsSystem Spec
.
21 Apr 2015   #2
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

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 System SpecsSystem Spec
Reply

 Windows Task Scheduler Move File




Thread Tools




Similar help and support threads
Thread Forum
Need help creating a task scheduler task to move files over a network.
Hello everyone, I need to have a task run that will move the contents of a folder from one computer to another over my home LAN. Files get downloaded during the night on one computer and then need to be transfered to another. Usually I am doing this by hand, but then though maybe I could get...
General Discussion
Task Scheduler deleting bat file and removing permissions for folder.
I have a simple bat file that launches firefox and runs an in-browser macro that logs me on. It's worked flawlessly, at 7am and 3pm every day. Suddenly today, Task Scheduler launches it and mid-bat file, deletes it. - I tried to copy paste the macro back in and rename it, it tells me I don't have...
General Discussion
Task Scheduler: Batch file stuck in 'running' status
I need to run a batch file using the System account when a user logs on. This is needed for Crashplan to see network drives, following the tip at The Crashplan Network Drive Workaround My batch file does the following: net use r: \\server\folder1 net use s: \\server\folder2 I have created...
Performance & Maintenance
Windows Task Scheduler Batch File
Hello: I have a Batch File, to move a file to a different folder, that I would like to run from Windows Task Scheduler on a windows server 2008 R2 . The batch file itself works, however running it from Windows Task Scheduler does not work. I am trying to move the file within the L drive. I...
General Discussion
Windows Task Scheduler stays active after it runned a batch file
Hi small question, My batch file runs quite well in windows task scheduler, but it stays active. How can I make sure Task Scheduler finishes this? I am closing VLC player with a command ending with --play-and-exit and then vlc:quit (to kill the processes in the task manager).
Performance & Maintenance


Our Sites

Site Links

About Us

Find 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 05:34.
Twitter Facebook Google+