If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
xcopy32 problem with spaces in file name
Hello,
I am receiving the following error when I try to use the xcopy32 command to copy files to a network drive: 'The system cannot find the file specified.' 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? Regards, Peter Poulimenakos |
#2
|
|||
|
|||
xcopy32 problem with spaces in file name
On Thu, 22 Jul 2004 13:04:42 -0700, "Peter Poulimenakos"
put finger to keyboard and composed: I am receiving the following error when I try to use the xcopy32 command to copy files to a network drive: 'The system cannot find the file specified.' 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? The first character in the filename is not a space. To see what it really is, drop into a DOS window and execute the following: dir *.dbf /b dirlist debug DIRLIST -d 100 -d ... -q or dir *.dbf /b dirlist edit /64 dirlist Move the cursor over the hidden character and check its decimal ASCII "value" at the bottom of the screen. How are you invoking the Xcopy/Xcopy32 command, ie what is the exact syntax? FYI, in a Win DOS box, the Xcopy command automatically invokes Xcopy32. FWIW, I have no trouble creating a filename with a leading space and then using Xcopy (or Xcopy32) to make a copy of it. The following commands work as expected in a Windows DOS box. rem " junk1" ------ creates a zero byte file xcopy " junk1" " junk2" - Franc Zabkar -- Please remove one 's' from my address when replying by email. |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
xcopy32 problem with spaces in file name
-----Original Message----- On Thu, 22 Jul 2004 13:04:42 -0700, "Peter Poulimenakos" put finger to keyboard and composed: I am receiving the following error when I try to use=20 the=20 xcopy32 command to copy files to a network drive: 'The system cannot find the file specified.' Now the files it's having a problem with all have a=20 space=20 before the filename. ex: " Combined Invoice_NAFTA=20 Cert.dbf" when I view them in explorer. But when=20 Xcopy32=20 tries to copy the above mentioned file it shows the=20 file=20 its trying to copy as "_Combined Invoice_NAFTA=20 Cert.dbf"... And hence can't find the file. Is there a way to correct this behavior? The first character in the filename is not a space. To=20 see what it really is, drop into a DOS window and execute the=20 following: dir *.dbf /b dirlist debug DIRLIST -d 100 -d ... -q or dir *.dbf /b dirlist edit /64 dirlist Move the cursor over the hidden character and check its=20 decimal ASCII "value" at the bottom of the screen. How are you invoking the Xcopy/Xcopy32 command, ie what=20 is the exact syntax? FYI, in a Win DOS box, the Xcopy command=20 automatically invokes Xcopy32. FWIW, I have no trouble creating a filename with a=20 leading space and then using Xcopy (or Xcopy32) to make a copy of it. The=20 following commands work as expected in a Windows DOS box. rem " junk1" ------ creates a zero byte file xcopy " junk1" " junk2" - Franc Zabkar --=20 Please remove one 's' from my address when replying by=20 email. . Hi Guy and thanks for the replies, I havent had a chance to try out your DOS command (dir=20 *.dbf /b dirlist) just yet, but below is the command=20 I'm using to copy the files: xcopy32 c:\fedext~1\*.* z:\fedex_trade /a/d/s/y I've also used the /k/c witches without any success as=20 well... I've used this command on several 98se PCs with=20 success copying files with 'spaces' at the begining of=20 the file name, it's just this one PC that is giving me=20 trouble (98se as well). Below is a DOS level directory dump comparison between=20 two PCs where the files copied successfully and my=20 problem PC. Good PC: (as in the 'spaced' files will copy) Volume in drive C is WIN98-2 =20 Volume Serial Number is 0675-17E7 Directory of C:\FedEx Trade Networks Forms .. DIR 04/07/03 15:59 . ... DIR 04/07/03 15:59 .. AIDE-N~1 FOF 51,308 25/07/02 18:25 Aide-NAFTA=20 Certificate.fof HELP-C~1 FOF 419,954 25/07/02 18:25 Help- Combination Custom Invoice and NAFTA Cert.fof HELP-C~2 FOF 286,224 25/07/02 18:25 Help-Custom=20 Invoice with Shipper's Declaration.fof HELP-C~3 FOF 272,937 25/07/02 18:25 Help-Custom=20 Invoice (no declaration).fof HELP-C~4 FOF 38,529 25/07/02 18:25 Help-Custom=20 Form 7533-Inward Cargo Manifest.fof HELP-N~1 FOF 50,228 25/07/02 18:25 Help-NAFTA=20 Certificate.fof =FFCOMBI~1 DBF 13,914 29/01/03 10:11 =FFCombined=20 Invoice_NAFTA Cert.dbf =FFCOMBI~1 FOD 193 02/02/04 13:12 =FFCombination=20 Custom Invoice and NAFTA Cert.fod =FFCOMBI~1 FRM 977,945 29/01/03 10:09 =FFCombination=20 Custom Invoice and NAFTA Cert.frm =FFINVOI~1 DBF 9,101 28/01/03 15:17 =FFInvoice=20 w_Shipper's Declaration.dbf =FFCUSTO~1 FOD 197 14/07/03 16:21 =FFCustom=20 Invoice with Shipper's Declaration.fod Problem PC: (as in the 'spaced' files will not copy) Volume in drive C has no label Volume Serial Number is 6D59-1A1C Directory of C:\FedEx Trade Networks Forms .. DIR 07-07-03 12:54p . ... DIR 07-07-03 12:54p .. AIDE-N~1 FOF 51,308 07-25-02 6:25p Aide-NAFTA=20 Certificate.fof HELP-C~1 FOF 419,954 07-25-02 6:25p Help- Combination Custom Invoice and NAFTA Cert.fof HELP-C~2 FOF 286,224 07-25-02 6:25p Help-Custom=20 Invoice with Shipper's Declaration.fof HELP-C~3 FOF 272,937 07-25-02 6:25p Help-Custom=20 Invoice (no declaration).fof HELP-C~4 FOF 38,529 07-25-02 6:25p Help-Custom=20 Form 7533-Inward Cargo Manifest.fof HELP-N~1 FOF 50,228 07-25-02 6:25p Help-NAFTA=20 Certificate.fof _COMBI~1 DBF 13,914 01-29-03 10:11a _Combined=20 Invoice_NAFTA Cert.dbf _COMBI~1 FOD 245 07-07-03 2:02p _Combination=20 Custom Invoice and NAFTA Cert.fod _COMBI~1 FRM 977,945 01-29-03 10:09a _Combination=20 Custom Invoice and NAFTA Cert.frm _INVOI~1 DBF 9,101 01-28-03 3:17p _Invoice=20 w_Shipper's Declaration.dbf _CUSTO~1 FOD 197 07-16-04 10:42a _Custom=20 Invoice with Shipper's Declaration.fod Thanks, Peter Poulimenakos |
#5
|
|||
|
|||
xcopy32 problem with spaces in file name
On Mon, 26 Jul 2004 07:16:49 -0700, "Peter Poulimenakos"
put finger to keyboard and composed: -----Original Message----- On Thu, 22 Jul 2004 13:04:42 -0700, "Peter Poulimenakos" put finger to keyboard and composed: I am receiving the following error when I try to use the xcopy32 command to copy files to a network drive: 'The system cannot find the file specified.' 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? The first character in the filename is not a space. To see what it really is, drop into a DOS window and execute the following: dir *.dbf /b dirlist debug DIRLIST -d 100 -d ... -q or dir *.dbf /b dirlist edit /64 dirlist Move the cursor over the hidden character and check its decimal ASCII "value" at the bottom of the screen. How are you invoking the Xcopy/Xcopy32 command, ie what is the exact syntax? FYI, in a Win DOS box, the Xcopy command automatically invokes Xcopy32. FWIW, I have no trouble creating a filename with a leading space and then using Xcopy (or Xcopy32) to make a copy of it. The following commands work as expected in a Windows DOS box. rem " junk1" ------ creates a zero byte file xcopy " junk1" " junk2" - Franc Zabkar -- Please remove one 's' from my address when replying by email. . Hi Guy and thanks for the replies, I havent had a chance to try out your DOS command (dir *.dbf /b dirlist) just yet, ... This procedure takes about one minute and may help explain why your two PCs behave differently. At the very least, if we knew the byte value(s) of the leading character(s) we may at least be able to reproduce your problem on our machines. but below is the command I'm using to copy the files: xcopy32 c:\fedext~1\*.* z:\fedex_trade /a/d/s/y I've also used the /k/c witches without any success as well... I've used this command on several 98se PCs with success copying files with 'spaces' at the begining of the file name, it's just this one PC that is giving me trouble (98se as well). Below is a DOS level directory dump comparison between two PCs where the files copied successfully and my problem PC. Good PC: (as in the 'spaced' files will copy) Volume in drive C is WIN98-2 Volume Serial Number is 0675-17E7 Directory of C:\FedEx Trade Networks Forms HELP-N~1 FOF 50,228 25/07/02 18:25 Help-NAFTA Certificate.fof ˙COMBI~1 DBF 13,914 29/01/03 10:11 ˙Combined Invoice_NAFTA Cert.dbf Problem PC: (as in the 'spaced' files will not copy) Volume in drive C has no label Volume Serial Number is 6D59-1A1C Directory of C:\FedEx Trade Networks Forms HELP-N~1 FOF 50,228 07-25-02 6:25p Help-NAFTA Certificate.fof _COMBI~1 DBF 13,914 01-29-03 10:11a _Combined Invoice_NAFTA Cert.dbf I notice that the two PCs use different date and time formats. Could this be significant? Are the filenames generated by the software, or are they created manually? My newsreader sees the leading character in the first dir listing as a lower case y with an "umlaut", whereas the leading character in the second listing is an underscore. The fact that these two characters are different is puzzling. Did you transcribe either listing by hand, or did the same software generate two different leading characters? In any case, I'm puzzled why there should there be any non-ASCII leading characters at all. This may be a red herring, but the ALT 0255 combination (numeric keypad) displays the aforementioned lower case y when executed in a Windows app such as Wordpad, while ALT 255 produces an ASCII underscore (= ALT 095). - Franc Zabkar -- Please remove one 's' from my address when replying by email. |
#6
|
|||
|
|||
xcopy32 problem with spaces in file name
-----Original Message----- On Mon, 26 Jul 2004 07:16:49 -0700, "Peter Poulimenakos" put finger to keyboard and composed: -----Original Message----- On Thu, 22 Jul 2004 13:04:42 -0700, "Peter=20 Poulimenakos" put finger to keyboard and composed: I am receiving the following error when I try to use=20 the=20 xcopy32 command to copy files to a network drive: 'The system cannot find the file specified.' Now the files it's having a problem with all have a=20 space=20 before the filename. ex: " Combined Invoice_NAFTA=20 Cert.dbf" when I view them in explorer. But when=20 Xcopy32=20 tries to copy the above mentioned file it shows the=20 file=20 its trying to copy as "_Combined Invoice_NAFTA=20 Cert.dbf"... And hence can't find the file. Is there a way to correct this behavior? The first character in the filename is not a space. To=20 see what it really is, drop into a DOS window and execute the=20 following: dir *.dbf /b dirlist debug DIRLIST -d 100 -d ... -q or dir *.dbf /b dirlist edit /64 dirlist Move the cursor over the hidden character and check=20 its=20 decimal ASCII "value" at the bottom of the screen. How are you invoking the Xcopy/Xcopy32 command, ie=20 what=20 is the exact syntax? FYI, in a Win DOS box, the Xcopy command=20 automatically invokes Xcopy32. FWIW, I have no trouble creating a filename with a=20 leading space and then using Xcopy (or Xcopy32) to make a copy of it.=20 The=20 following commands work as expected in a Windows DOS box. rem " junk1" ------ creates a zero byte file xcopy " junk1" " junk2" - Franc Zabkar --=20 Please remove one 's' from my address when replying by=20 email. . Hi Guy and thanks for the replies, I havent had a chance to try out your DOS command (dir=20 *.dbf /b dirlist) just yet, ... This procedure takes about one minute and may help=20 explain why your two PCs behave differently. At the very least, if we=20 knew the byte value(s) of the leading character(s) we may at least be=20 able to reproduce your problem on our machines. but below is the command=20 I'm using to copy the files: xcopy32 c:\fedext~1\*.* z:\fedex_trade /a/d/s/y I've also used the /k/c witches without any success as=20 well... I've used this command on several 98se PCs with=20 success copying files with 'spaces' at the begining of=20 the file name, it's just this one PC that is giving me=20 trouble (98se as well). Below is a DOS level directory dump comparison between=20 two PCs where the files copied successfully and my=20 problem PC. Good PC: (as in the 'spaced' files will copy) Volume in drive C is WIN98-2 =20 Volume Serial Number is 0675-17E7 Directory of C:\FedEx Trade Networks Forms HELP-N~1 FOF 50,228 25/07/02 18:25 Help-NAFTA=20 Certificate.fof =FFCOMBI~1 DBF 13,914 29/01/03 10:11 =FFCombined=20 Invoice_NAFTA Cert.dbf Problem PC: (as in the 'spaced' files will not copy) Volume in drive C has no label Volume Serial Number is 6D59-1A1C Directory of C:\FedEx Trade Networks Forms HELP-N~1 FOF 50,228 07-25-02 6:25p Help-NAFTA=20 Certificate.fof _COMBI~1 DBF 13,914 01-29-03 10:11a _Combined=20 Invoice_NAFTA Cert.dbf I notice that the two PCs use different date and time=20 formats. Could this be significant? Are the filenames generated by the software, or are they=20 created manually? My newsreader sees the leading character in=20 the first dir listing as a lower case y with an "umlaut", whereas the=20 leading character in the second listing is an underscore. The=20 fact that these two characters are different is puzzling. Did you=20 transcribe either listing by hand, or did the same software generate two=20 different leading characters? In any case, I'm puzzled why there=20 should there be any non-ASCII leading characters at all. This may be a red herring, but the ALT 0255 combination=20 (numeric keypad) displays the aforementioned lower case y when=20 executed in a Windows app such as Wordpad, while ALT 255 produces an=20 ASCII underscore (=3D ALT 095). Hi Frank, I hadn't noticed the date time format was different...=20 Strange if you ask me seeing as both systems are 98se.=20 Perhaps one was upgraded from Windows 95 or something=20 like that.=20 Anyways to answer your question, these file names where=20 generated by a software install (FedEx trade software). I=20 just wanted to automatically backup the directory to=20 another location for backup purposes. No the directory=20 listing was not transcribed by hand. I just dumped the=20 directory listing to a text file on both PCs and cut and=20 past the results to this newsgroup using the following=20 DOS cmd: dir c:\text.txt I was looking for some sort of registry or ini file fix=20 to resolve this behavior... But it don't look like I'm=20 gonna get it :-)...=20 Quick question though, I was trying the various ALT xxx=20 combinations, all work as you described except for the=20 ALT 255... In my case it doesn't produce a=20 underscore '_', but rather a space ' '. Is this correct? Regards, Peter Poulimenakos |
#7
|
|||
|
|||
xcopy32 problem with spaces in file name
On Wed, 28 Jul 2004 12:18:43 -0700, "Peter Poulimenakos"
put finger to keyboard and composed: Quick question though, I was trying the various ALT xxx combinations, all work as you described except for the ALT 255... In my case it doesn't produce a underscore '_', but rather a space ' '. Is this correct? That's also what I get in a Windows DOS box. Windows apps produce different results, though. - Franc Zabkar -- Please remove one 's' from my address when replying by email. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why is everything saving to notepad? | Lestat | General | 1 | July 18th 04 05:38 AM |
Please help! Display settings !! | Mitzi | Monitors & Displays | 12 | July 11th 04 05:19 AM |
Win98SE - problem with USB printer | HBYardSale | Software & Applications | 2 | June 20th 04 06:27 PM |
Long file name Problem | Canapril | General | 1 | June 12th 04 03:36 AM |
Winsock Error or Host File Problem? | Bruce | General | 2 | June 7th 04 02:51 PM |