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-02 08:02
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to back up user files like My Documents, Favorites, FOXMAIL, system information, etc. View 1,530 Replies 5
Original Poster Posted 2006-10-24 12:36 ·  中国 广东 广州 天河区 电信
新手上路
Credits 13
Posts 4
Joined 2006-10-24 11:11
19-year member
UID 68042
Gender Male
Status Offline
Asking all you seniors:
I'm still a relatively novice maintainer, often installing systems. Before and after installing the system, I often waste time on user data backup and restoration. I want to use a batch file that, when executed, can back up all user documents such as My Documents, Favorites, Desktop, commonly used program data such as FOXMAIL, as well as system information, user account information, IP parameter information, printer information, drivers, etc. I have many problems and need to ask all you seniors:
1. When backing up user documents, I don't know how to use path variables, like for My Documents, Favorites, Desktop, etc. I used: xcopy %userprofile%\cookies (and favorites) x:\xx\xxx /y /e
It prompts that the specified file is not found,????
I know that after copying, I will point My Documents, Favorites, etc. in the registry to x:\xx\xxx, and then export it. After installing the machine, just double-click to import the registry, which is very convenient. Later, when installing this machine, there's no need to back up: and I can also use the DOS command to import the registry key: regedit /e xxx.reg.
2. net user lists user account information, which is also what I want to back up and put into the specified path folder. This is no problem.
3, systeminfo lists PC configuration information, which is used under XP, but under WIN2K, which command is it? /???
4, // The command to back up IP parameters (can also use the common ipconfig /all to back up the computer name, workgroup, etc.):
netsh -c interface dump>d:\ip.txt
// Output the IP configuration parameters to the specified IP.TXT text file generated on drive D;
// To restore the IP parameters after executing the above backup file:
netsh -f d:\ip.txt This is no problem.
5, I don't know how to back up printer information, such as which printers are installed, and it would be better to back up the drivers. Please teach????
6, How to back up other drivers with commands????
Floor 2 Posted 2006-10-24 22:49 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
1. Add "" to the 2 path
3. 2k has no such command
5. The driver is in %SystemRoot%\System32\Drivers\

The landlord can use Ghost, confirmed

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-10-25 06:41 ·  中国 广东 广州 天河区 电信
新手上路
Credits 13
Posts 4
Joined 2006-10-24 11:11
19-year member
UID 68042
Gender Male
Status Offline
Thanks to the person above, personally, using GHOST is too general, has poor targeting, and cannot schedule tasks. Batch processing to restore specific user documents takes only a few seconds. It is especially suitable for newly installed systems.
Floor 4 Posted 2006-10-25 07:10 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Then I suggest you to backup every directory under C: except Windows\

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 5 Posted 2006-10-25 07:15 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Hehe, I also learned some things from the owner's post =_= Hehe——
Floor 6 Posted 2006-10-25 09:22 ·  中国 广东 广州 天河区 电信
新手上路
Credits 13
Posts 4
Joined 2006-10-24 11:11
19-year member
UID 68042
Gender Male
Status Offline
Thank you all,

I might not have expressed it well. I want to copy from a newly installed machine or a machine that hasn't done user document migration (meaning migrating to a non-system disk or network) through batch processing COPY, and then do registry or other forms of pointing migration. Later, this machine won't need to be backed up again. Even if it's reinstalled, just point the path. (Recovery is not referring to copying back to the original position.) And at any time, if the system has problems, it won't affect the immediate information of user documents. Besides user documents, system parameters and services also need to be backed up, such as TCP/IP parameters, PC system information, specific services like IIS, etc.

I feel it's useful.
Forum Jump: