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-09 10:06
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question about automatic file backups View 794 Replies 4
Original Poster Posted 2008-08-02 10:35 ·  中国 上海 电信
新手上路
Credits 12
Posts 5
Joined 2008-08-01 21:01
18-year member
UID 122586
Gender Male
Status Offline
Hello, experts. I’ve just started learning batch file writing. I read the content about file copying in the featured thread, but I still don’t quite understand how to solve the problem I’m facing now, so I’m asking all you experts for advice. Thank you all very, very much!
The current situation is like this:
Right now there are two laptops at home. Because of a virus some time ago, I was really hurt badly by it, and a lot of materials were lost. Recently I bought a larger portable hard drive, and I plan to use it to back up the contents of the two laptops from time to time into designated folders on the portable hard drive. The problem now is:
1\The portable hard drive shows different drive letters on the two computers, so it can’t be done with the XCOP plus drive-letter method;
2\To distinguish the backup time, it would be best if under the designated folder on the portable hard drive it could automatically create a new folder named with the date, and then copy the backup contents into it;
3\My computer has four drives (C\D\E\F), but my wife’s computer has five drives (C\D\E\F\G, where E is the CD-ROM drive). Now aside from drive C and the CD-ROM, all the others need to be backed up. How can I have the program automatically filter them and perform the backup;
4\Can the delay function be used to make the DOS window disappear? If so, how can it be used in this batch file.

Many thanks!
Floor 2 Posted 2008-08-02 10:41 ·  中国 江苏 苏州 吴江区 电信
银牌会员
★★★
Credits 1,608
Posts 780
Joined 2007-10-07 10:19
18-year member
UID 99089
Gender Male
Status Offline
There are many ways to find the removable drive letter, search for it.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
fuge +1 2008-08-02 10:51
Floor 3 Posted 2008-08-02 10:50 ·  中国 上海 电信
新手上路
Credits 12
Posts 5
Joined 2008-08-01 21:01
18-year member
UID 122586
Gender Male
Status Offline
I got some information so quickly, thank you very much!!!!
Since it’s to be used separately on two computers, the batch file is placed on the portable hard drive. Is that OK?
Floor 4 Posted 2008-08-02 10:54 ·  中国 江苏 苏州 吴江区 电信
银牌会员
★★★
Credits 1,608
Posts 780
Joined 2007-10-07 10:19
18-year member
UID 99089
Gender Male
Status Offline
You can put it anywhere, as long as it can communicate with the operating system.
Floor 5 Posted 2008-08-05 23:16 ·  中国 上海 电信
新手上路
Credits 12
Posts 5
Joined 2008-08-01 21:01
18-year member
UID 122586
Gender Male
Status Offline
Looking forward to a detailed explanation from an expert. Thanks.
Forum Jump: