Page 1 of 1

xcopy

Posted: 15 Jan 2010 19:31
by dachadster13
Hey guys..I have a desktop running Windows 7 and a work laptop (on a domain) running XP Pro SP2. I have created a share on my laptop to access my desktop so I can pull the files I need. The share works just fine but I would like to automate the transfer process (from the shared folder on my laptop to a different folder on the desktop) on startup. When I run the file using xcopy I keep getting an error saying there is a incorrect syntax. Here is what I am using:

Code: Select all

xcopy "\\servername\path" "directory path on laptop"


I have researched the correct syntax and everything looks correct. I know the quotes need to be added since there are spaces used in the path. Any help on this would be greatly appreciated. Thanks in advance.

Posted: 18 Jan 2010 07:34
by P=W/T
At the command line, type:

xcopy /?

This will give you a listing of the syntax required to use xcopy properly.

More than likely the following command will work for you, but you may need to modify it to suit your needs.

XCOPY /E /I /Q "\\servername\path" "directory path on laptop"