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:03
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Why can't the xcopy command run under pure DOS? View 11,948 Replies 55
Original Poster Posted 2006-06-16 23:29 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
My system is Windows XP SP2. There is an xcopy file in c:\windows\system32. I copied it to the Win98 boot disk. After booting with the boot disk, the xcopy program cannot be run. The command I used is: xcopy c:\123\*.* g:\456/s. The returned message is "....is neither an internal or external command, nor a runnable program or batch file". What's the matter with this?
Floor 2 Posted 2006-06-16 23:35 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
"... neither an internal or external command, nor a runnable program or batch file" is obviously not a prompt under pure DOS. The XCOPY in WinXP SP2 cannot be run directly under DOS, but it shouldn't have such a prompt. Did you really run it under pure DOS? Here you can download the pure MS-DOS 7.10 boot disk:

http://www.cn-dos.net/msdos71/msdos71b.zip
Wengier - 新DOS时代

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

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

Floor 3 Posted 2006-06-17 00:19 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
Thanks
Floor 4 Posted 2006-06-17 00:30 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
Later, I downloaded an XCOPY in this forum. Then, I booted to pure DOS using a Win98 boot disk. I could use this command, but the only shortcoming is that this command doesn't support long file names. If anyone has a long - file - name - supporting XCOPY, I would be very grateful!
Floor 5 Posted 2006-06-17 01:36 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Please use the real pure DOS bootable disk to boot. After booting, run XCOPY in it to fully support Chinese and English long file names:

http://cndos.l009.com/soft/doscp.zip
Wengier - 新DOS时代

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

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

Floor 6 Posted 2006-06-17 09:17 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
I am very grateful. It can be seen from this that the management here is very responsible. You've worked hard!
Floor 7 Posted 2006-06-17 09:29 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
Please use the real pure DOS boot disk to boot. After booting, run XCOPY in it to fully support Chinese and English long filenames:

http://cndos.l009.com/soft/doscp.zip
It doesn't work. After downloading, it's a DOSP.IMG file, and I can't use it to make a boot disk. What should I do?
Floor 8 Posted 2006-06-17 13:07 ·  加拿大 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-17 09:29 AM:
Please boot with the following real pure DOS boot disk. After booting, run XCOPY in it to fully support Chinese and English long file names:

http://cndos.l009.com/soft/doscp.zip
It doesn't work. After downloading, it's a DOSP.IMG file, and I can't make a boot disk with it. What should I do?


The IMG file itself is a standard floppy disk image format. How can it be impossible to make a boot disk? You can use WinImage or something like that to expand it to a floppy disk to make a boot disk, or you can directly use it as a floppy disk image for a virtual machine to boot. It's very convenient to use.
Wengier - 新DOS时代

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

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

Floor 9 Posted 2006-06-17 20:40 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
IMG files are standard floppy disk image formats themselves. How could they be unable to be made into a bootable disk? You can use WinImage or similar tools to expand them onto a floppy disk to make a bootable floppy, or you can directly use them as a floppy disk image in a virtual machine to boot, which is very convenient to use.

I downloaded WinImage, installed it and made a floppy boot, but the XCOPY in it can only copy one file. It's not as good as the XCOPY I downloaded in this forum. Although it doesn't support long filenames, it can copy completely, and it can copy the contents of files, folders and subdirectories.
Floor 10 Posted 2006-06-17 22:30 ·  加拿大 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-17 08:40 PM:
I downloaded a WinImage, and after installation, I made a floppy disk boot, but the XCOPY inside can only copy one file. It's not as good as the XCOPY I downloaded in this forum. Although it doesn't support long file names, it can copy completely. All the contents of the files, folders, and subdirectories can be copied.


It's not like that. This XCOPY can copy the contents of the entire file and folder normally without any problem, and it is much more powerful than the XCOPY that doesn't support long file names. I have tried this XCOPY many times and am using it myself. I didn't find such a problem. So there must be an error in your usage (Tip: When you feel that it can't be used normally, the first thing to think about is whether your usage method is wrong). You can post your usage and results so that I can see where the error is.
Wengier - 新DOS时代

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

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

Floor 11 Posted 2006-06-18 09:48 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
My syntax is: xcopy c:\123\*.* g:\456 /s
Floor 12 Posted 2006-06-18 09:57 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
Your syntax is basically correct. The XCOPY command you wrote `XCOPY C:\123\*.* G:\456 /S` is used to recursively copy the files and subdirectories under the 123 folder on the C drive to the 456 folder on the G drive. Just make sure that the 456 folder already exists on the G drive, otherwise you may need to create it first.
Floor 13 Posted 2006-06-18 09:57 ·  加拿大 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 09:48 AM:
My syntax is: xcopy c:\123\*.* g:\456 /s


Then what information is displayed after you enter this command? Does the directory G:\456 exist?
Wengier - 新DOS时代

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

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

Floor 14 Posted 2006-06-18 10:02 ·  中国 重庆 巫溪县 电信
初级用户
Credits 66
Posts 26
Joined 2006-06-16 23:09
20-year member
UID 57122
Status Offline
There is no 456 folder in drive G. This is a 456 folder created using this syntax. After entering, it prompts "Press F or D", I pressed D, and as a result, only one file was copied.
Floor 15 Posted 2006-06-18 10:16 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
I just tried to simulate your environment (so that the C:\123 folder contains some RMI files with long file names, and the D:\456 folder does not yet exist), and tried your command itself, and the result is as follows:

A:\>XCOPY C:\123\*.* D:\456 /S
Does 456 specify a file name
or directory name on the target
(F = file, D = directory)?D
Mozart's Symphony No. 40.RMI
Bach's Brandenburg Concerto No. 3.RMI
Beethoven's Fur Elise.RMI
Beethoven's 5th Symphony.RMI
In the Hall of the Mountain King.RMI
Debussy's Claire de Lune.RMI
Dance of the Sugar-Plum Fairy.RMI
7 File(s) copied

A:\>

The copied content is completely normal. Do you have a screenshot?
Wengier - 新DOS时代

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

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

Forum Jump: