Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
dachadster13
- Posts: 5
- Joined: 20 Jul 2009 17:19
#1
Post
by dachadster13 » 15 Jan 2010 19:31
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.
-
P=W/T
- Posts: 4
- Joined: 28 Sep 2009 13:34
#2
Post
by P=W/T » 18 Jan 2010 07:34
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"