Can someone point me in the right direction or provide a script that moves files from a local folder to a server folder? Once the script is written I will be using Task Scheduler to run every minute between 7am and 4pm.
The local folder is on a Windows XP PC and needs to be moved to a folder on a 2008 server. The account I am using is a network admin account on both the PC and server. Both the PC and server are on the domain, and I can write to each location using my admin account. I can also map to each location.
I have tried writing a batch file;
move c:\mytest\*.* \\servername\folder1\folder2\folder3
But it returns the following error:
The filename, directory name, or volume label syntax is incorrect
I have tried powershell, but found out that "move-item" will only move files on the same volume, not across multiple volumes.
I have tried robocopy:
robocopy c:\mytest U:\ /mov /R:1 /W:1 /LOG:log1.log
I have also tried with /move
In both instances it will copy the files successfully, but it will not delete the source files when done.
Any help someone could provide would be helpful.
By the way, I have searched for VB Scripts but am unable to understand the scripting language., so I have not tested much with the ones I have found out of fear that it might be doing more in the background that I need it to.