中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-19 02:46
47,814 topics / 349,908 posts / today 1 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Why can't the xcopy command run under pure DOS?
Printable Version  12,588 / 55
Floor1 jcyncz Posted 2006-06-16 23:29
初级用户 Posts 26 Credits 66
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?
Floor2 Wengier Posted 2006-06-16 23:35
系统支持 Posts 10,521 Credits 27,736
"... 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
Floor3 jcyncz Posted 2006-06-17 00:19
初级用户 Posts 26 Credits 66
Thanks
Floor4 jcyncz Posted 2006-06-17 00:30
初级用户 Posts 26 Credits 66
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!
Floor5 Wengier Posted 2006-06-17 01:36
系统支持 Posts 10,521 Credits 27,736
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
Floor6 jcyncz Posted 2006-06-17 09:17
初级用户 Posts 26 Credits 66
I am very grateful. It can be seen from this that the management here is very responsible. You've worked hard!
Floor7 jcyncz Posted 2006-06-17 09:29
初级用户 Posts 26 Credits 66
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?
Floor8 Wengier Posted 2006-06-17 13:07
系统支持 Posts 10,521 Credits 27,736
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.
Floor9 jcyncz Posted 2006-06-17 20:40
初级用户 Posts 26 Credits 66
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.
Floor10 Wengier Posted 2006-06-17 22:30
系统支持 Posts 10,521 Credits 27,736
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.
Floor11 jcyncz Posted 2006-06-18 09:48
初级用户 Posts 26 Credits 66
My syntax is: xcopy c:\123\*.* g:\456 /s
Floor12 jcyncz Posted 2006-06-18 09:57
初级用户 Posts 26 Credits 66
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.
Floor13 Wengier Posted 2006-06-18 09:57
系统支持 Posts 10,521 Credits 27,736
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?
Floor14 jcyncz Posted 2006-06-18 10:02
初级用户 Posts 26 Credits 66
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.
Floor15 Wengier Posted 2006-06-18 10:16
系统支持 Posts 10,521 Credits 27,736
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?
1 2 3 4  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023