Robocopy Invalid Parameters

Posted by Drue on Stack Overflow See other posts from Stack Overflow or by Drue
Published on 2012-10-21T16:42:00Z Indexed on 2012/10/21 17:00 UTC
Read the original article Hit count: 140

Filed under:
|
|
|
|

I'm using the batch command robocopy to copy my website source files from my flash drive to my dad's laptop for a backup. I've ran it as an administrator and I get an invalid parameter error message. Here's what I have so far:

@echo off
robocopy "G:\xampp-portable\htdocs" "W:\xcopytest"  /e 
pause>nul

I want to use %cd% instead of "G:\xampp-portable" Also, my .bat file is in G:\xampp-portable. UAC is set to normal and I'm using Windows 7.

[EDIT] I tried a similar code in 'W:\' under a test folder and it worked fine. I think the problem is the drive to drive. [/EDIT]

© Stack Overflow or respective owner

Related posts about windows-7

Related posts about batch