View Single Post
  #3  
Old July 24th 04, 04:25 AM
TR
external usenet poster
 
Posts: n/a
Default xcopy32 problem with spaces in file name

"Peter Poulimenakos" wrote in
...
Now the files it's having a problem with all have a space
before the filename. ex: " Combined Invoice_NAFTA
Cert.dbf" when I view them in explorer. But when Xcopy32
tries to copy the above mentioned file it shows the file
its trying to copy as "_Combined Invoice_NAFTA
Cert.dbf"... And hence can't find the file.

Is there a way to correct this behavior?


If the first character is a real space, you could put the filename including
its spaces between doublequotes, e.g.:

xcopy32 " Combined Invoice_N......."

If the first character is not a printable character, you could use a
questionmark as a joker for 1 character, e.g.:

xcopy32 ?Combined Invoice_N.....

If you can determine the ascii-value of the first character (pleas read the
reply of FZ in this thread), you coiuld try to make the first character by
pressing the alt-key, keeping it pressed, and type the ascii-value on the
numberkeys at the right of the keyboard, release the alt-key.

Let's say, the ascii-value is 255. The command to copy would be:

xcopy32 XCombined Invoice_N.....

Do not enter X, but press alt, keep it pressed, and type 255 on the
righthand keypad, and release the alt-key.
By the way: alt255 will be displayed as a space.

Hope this works.

Grtz,

TR