![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread[>>]
Number : 8463 Date : 2004-08-05 Author : John Zeman Subject : Re: Long filename with space Size(KB) : 1
--- In xxcopy@yahoogroups.com, "KC Cheung" wrote: > Guess we have to enclose long paths and filenames with space in quotation marks like > > > xxcopy /EC/WS/NX0 "C:\Documents and Settings\*.*" "F:\Documents and > > Settings\" /BU/FF > > If affirmative, is there any syntax on the use of quotation marks please? > > Regards > KC Cheung > > The simple and short answer is if the source and/or destination paths contain spaces, they must be enclosed in double quotes. This is basically true for all command line applications. Otherwise the Windows command interpreter sees a space as a delimiter and truncates the path at the point where the first space occurs. For example, without double quotes C:\My Directory\ Would be interpreted as C:\My Which of course would result in an error. If in doubt, you can always enclose the source and destination in double quotes and xxcopy will work just fine whether there are spaces in the paths or not. Xxcopy "C:\" "D:\My Directory\" John
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.