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-08-12 21:16
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Old problem, urgent help needed View 1,159 Replies 2
Original Poster Posted 2003-06-19 00:00 ·  中国 湖南 衡阳 教育网
初级用户
Credits 103
Posts 1
Joined 2003-06-19 00:00
23-year member
UID 5527
Gender Male
Status Offline
Use xcopy?
I remember it seems to be an external command.
First you need path, then you also have to command
Not sure whether that's right, hoping an expert can advise
By the way
The system is broken, and the stuff in My Documents is very important
Can I directly reinstall the system onto another drive
Or copy the stuff out from inside and back it up
Please advise
Floor 2 Posted 2003-06-19 00:00 ·  中国 湖北 武汉 硚口区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Use xcopy like this? I don't know
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-06-19 00:00 ·  中国 北京 联通
高级用户
★★
Credits 546
Posts 135
Joined 2003-06-13 00:00
23-year member
UID 5077
Gender Male
Status Offline
XCOPY in WinXP is like this. Some parameters in lower versions may not be supported, try them yourself:

C:\>help xcopy
Copies files and directory trees.

XCOPY source ] ]


...]

source Specifies the file(s) to copy.
destination Specifies the location and/or name of new files.
/A Copies only files with the archive attribute set,
but does not change the attribute.
/M Copies only files with the archive attribute set,
and turns off the archive attribute.
/D:m-d-y Copies files changed on or after the specified date.
If no date is given, copies only those source files
whose source time is newer than the destination time.
/EXCLUDE:file1...
Specifies a list of files containing strings. If any
string matches part of the absolute path
of the file to be copied,
that file will not be copied.
For example, specifying strings like \obj\ or .obj will exclude
all files under the directory obj or files with
the .obj extension.
/P Prompts before creating each destination file.
/S Copies directories and subdirectories, except empty ones.
/E Copies directories and subdirectories, including empty ones.
Same as /S /E. Can be used to modify /T.
/V Verifies each new file.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If the destination does not exist, and more than one file
is being copied, assumes the destination
must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file names while copying.
/L Displays files to be copied.
/G Allows copying unencrypted files to
destinations that do not support encryption.
/H Also copies hidden and system files.
/R Overwrites read-only files.
/T Creates the directory structure, but does not copy files. Does not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
/U Copies only files that already exist in the destination.
/K Copies attributes. Normal Xcopy will reset read-only attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm overwriting
an existing destination file.
/-Y Causes prompting to confirm overwriting
an existing destination file.
/Z Copies network files in restartable mode.

The command-line switch /Y can be preset in the COPYCMD environment variable.
This may be overridden by /-Y on the command line.


Forum Jump: