|
Answer» Hello guys..
i'm new here and to be honest i know nothing about MS-dos programming. Thanks in advance for helping.
I want to do xcopy command to transfer files from one shared drive to another. I got one example of this command , it suppose to work the same way i want.
xcopy x:\"41DIMENSION" c:\"ikan" /s/m/d:01-01-12/y
But i have to modify it so it would work on my PC. The problem is, stating the new directory. INSTEAD of using x-drive or c-drive, mine is file-sharing with the adress
\\10.101.185.207\file_share\SCAN
Can it be done using xcopy command? How can i modify this?
i'm using Windows XP (version 5.1.2600).
"quotation marks" are only NECESSARY when a filename contains (or may contain) spaces. So you would want: Code: [Select]xcopy x:\41DIMENSION c:\ikan /s /m /d:01-01-12 /y Copying from windows fileshares should be supported, so Code: [Select]xcopy \\10.101.185.207\file_share\SCAN c:\destination /s /m /d:01-01-12 /y Should work just fine. If it doesn't, type "net HELP use" (without quotes) into the command prompt to see how to map a network drive from batch. You would assign \\10.101.185.207\file_share\ to the (for example) S: drive, and refer to it like xcopy S:\SCAN.Xcopy supports UNC paths just fine. You should put your quotes around the ENTIRE path, not just one folder name.Also note the trailing backslash on the end of the destination path. This stops xcopy asking if the destination is a folder or a file and assumes it is a folder.
xcopy "\\10.101.185.207\file_share\SCAN\*.*" "\\192.168.1.20\share\folder here\" /s /m /d:01-01-12 /yThanks all.
Thread solved
|