China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-01 22:01
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Why can't the xcopy command run under pure DOS? View 11,947 Replies 55
Floor 16 Posted 2006-06-18 10:26 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
There are also folders under the 123 folder (and there is content), I don't have a screenshot. Please try again for me.
Floor 17 Posted 2006-06-18 10:30 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
I uploaded the XCOPY extracted from DOSCP in WinImage. Please help me check if this XCOPY is normal. It would be best if you use this XCOPY I uploaded to do a test. Thanks!
Attachments
XCOPY.rar (6.93 KiB, Credits to download 1 pts, Downloads: 44)
Floor 18 Posted 2006-06-18 10:39 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by jcyncz at 2006-6-18 10:26 AM:
There are still folders in the 123 folder (and there is content), but I don't have a screenshot. Please try again.


Having folders and files under a folder is not a problem at all. Now, in my C:\toolkit folder, there is the entire expanded PowerQuest Deploy Toolkit software package, which contains many files and folders (including long filenames). Now I copy it to the D:\456 folder. The D:\456 folder does not exist yet (the previous one has been deleted). I use the XCOPY command line parameter /I to directly set D:\456 as the target folder to be automatically created and copied (so that I don't have to enter D when prompted later), and specify the /E parameter (that is, also copy empty folders), the /H parameter (that is, also copy hidden files). Now enter the following command:

A:\>XCOPY C:\toolkit\*.* D:\456 /S/E/H/I
Deploy Toolkit manual.pdf
PARTINFO\Dos\PartInfo.exe
PARTINFO\Linux\PartInfo
PARTINFO\Win\PartIn9x.exe
PARTINFO\Win\PartInNT.exe
PQA\Dos\PqaBldD.exe
PQA\Dos\PqaBldD.rtc
PQA\Dos\PqaDplyD.exe
PQA\Dos\PqaDplyD.rtc
PQA\Linux\pqabuild
PQA\Linux\pqabuild.rtc
PQA\Linux\pqadeploy
PQA\Linux\pqadeploy.rtc
PQA\Win\PqaBuild9x.exe
PQA\Win\PqaBuild9x.rtc
PQA\Win\PqaBuildNt.exe
PQA\Win\PqaBuildNt.rtc
PQA\Win\PqaDeploy9x.exe
PQA\Win\PqaDeploy9x.rtc
PQA\Win\PqaDeployNt.exe
PQA\Win\PqaDeployNt.rtc
PQACCESS\Dos\PqAccD.exe
PQACCESS\Dos\PqAccD.rtc
PQACCESS\Linux\pqaccess
PQACCESS\Linux\pqaccess.rtc
PQACCESS\Win\PQAccess9x.exe
PQACCESS\Win\PQAccess9x.rtc
PQACCESS\Win\PQAccessNT.exe
PQACCESS\Win\PQAccessNT.rtc
PQDISK\Dos\PqDisk.exe
PQDISK\Linux\PqDisk
PQDISK\Win\PqDisk9X.exe
PQDISK\Win\PqDiskNT.exe
PQDISK\Win\PQVXD.vxd
PQIDEPLOY\Dos\PQIDplyD.exe
PQIDEPLOY\Dos\PQIDplyD.rtc
PQIDEPLOY\Linux\pqideploy
PQIDEPLOY\Linux\pqideploy.rtc
PQIDEPLOY\Win\PQIDeploy.exe
PQIDEPLOY\Win\PQIDeploy.rtc
PQIEXTRACT\Dos\PqiExtD.exe
PQIEXTRACT\Dos\PqiExtD.rtc
PQIEXTRACT\Linux\pqiextract
PQIEXTRACT\Linux\pqiextract.rtc
PQIEXTRACT\Win\PqiExt9x.exe
PQIEXTRACT\Win\PqiExt9x.rtc
PQIEXTRACT\Win\PqiExtNT.exe
PQIEXTRACT\Win\PqiExtNT.rtc
PQQUERY\Dos\PqQuery.exe
PQQUERY\Win\PqQuery32.exe
PTEDIT\Dos\PtEditD.exe
PTEDIT\Win\PQBOOT32.exe
PTEDIT\Win\PtEdit32.exe
VBE\CALDERA.MBR
VBE\PQVXD.vxd
VBE\REBOOT.COM
VBE\restrmbr.exe
VBE\SAMPLE.VFD
VBE\VFile.exe
VBE\VFileX.exe
VBE\vfinst9x.exe
VBE\VFINSTD.EXE
VBE\VFInstNT.dll
VBE\VFInstNT.exe
VBE\VFLOPPY.SYS
VBE\VFLPPYLD.SYS
VBE\VFRSTMBR.COM
VBE\Linux\vfinstlx
68 File(s) copied

A:\>

The result is completely normal!
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 19 Posted 2006-06-18 10:50 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
Webmaster, have you used the XCOPY program I uploaded? Please try the XCOPY I sent and see if there's something wrong with my XCOPY! Thanks
Floor 20 Posted 2006-06-18 10:52 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by jcyncz at 2006-6-18 10:50 AM:
Webmaster, have you used the XCOPY program I uploaded? Please try the XCOPY I uploaded and see if there's something wrong with this XCOPY of mine! Thanks


I just did a binary comparison with FC, and it seems the same. Well, you can try other folders and see how it goes. Also, please pay attention to any error messages.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 21 Posted 2006-06-18 11:08 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
I have also tried other folders, and it's the same. You'd better use the XCOPY I uploaded to test in pure DOS, make a test of copying several folders with subfolders. Also, I suspect that this XCOPY program of mine is abnormal. Could you please send me your XCOPY to use and see if it can be used normally? Thanks.
Floor 22 Posted 2006-06-18 11:16 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
It has been tried, and it is completely normal. And the files are exactly the same, so it must have nothing to do with the files themselves. Didn't you see any error messages when you copied?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 23 Posted 2006-06-18 11:19 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
Webmaster, there is no error message, and it can be copied. However, what is copied over is a file - xls, and the folders under it are not copied over.
Floor 24 Posted 2006-06-18 11:20 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Have you tried the parameters I used above (such as /S/E/H/I)?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 25 Posted 2006-06-18 11:22 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
The file copied over is a long horizontal line followed by XLS, like this: ————xls. And there are no error messages at all. I don't know what's going on.
Floor 26 Posted 2006-06-18 11:26 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
/S/E/H/I, I haven't used this parameter before, I'm using /s. I'll try it again. Thanks
Floor 27 Posted 2006-06-18 11:45 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
I tried the parameters /s/e/h/i you gave again. It still doesn't work. It shows:
--------BOOK.XLS
-------.XLS
Error copying file c:\123\-------.XLS to G:\456\--------.xls
Msg id:00000002
1 File(s) copied
A:\﹥
But I was copying Chinese files and Chinese folders.
Floor 28 Posted 2006-06-18 11:52 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by jcyncz at 2006-6-18 11:45 AM:
Error copying file c:\123\-------.XLS to G:\456\--------.xls
Msg id:00000002


This is just an error message. It can be seen that an error occurred during copying, causing the stop, which is completely different from being unable to copy for no reason. With this, it is easier to locate the problem. Chinese files and Chinese folders can also be copied normally (I have confirmed it just now), but the fact that your file name is displayed as an underscore instead of Chinese indicates that the code page for long Chinese file names is not loaded correctly (this has nothing to do with XCOPY, but is a problem with the code page for long file names). You can first try to copy a directory without Chinese files and Chinese folders. If there is no problem, then try to solve the problem of the code page for long Chinese file names to copy Chinese folders.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 29 Posted 2006-06-18 11:56 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
How to solve this: The code page for long Chinese filenames was not loaded correctly, an issue with the code page for long filenames. But I used an XCOPY copied from this forum and it works normally, just that the full Chinese filenames can't be displayed. How to solve this long filename code problem? Please help me, thank you!

[ Last edited by jcyncz on 2006-6-18 at 12:00 ]
Floor 30 Posted 2006-06-18 12:01 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by jcyncz at 2006-6-18 11:56 AM:
How to solve this: The code page for long Chinese filenames was not loaded correctly, the issue of the code page for long filenames. Please help me, thank you

[ Last edited by jcyncz on 2006-6-18 at 11:57 ]


Didn't I tell you to first copy the English folder to test it? It's best to solve the problems one by one. Wait until the English is okay and then deal with the Chinese. Previously on the forum, another XCOPY didn't support long filenames, so only short filenames could be used. The storage methods of the two are completely different, so it's a completely different matter and should not be confused.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: