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-06-27 00:16
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Detailed Usage of IF, FOR, GOTO, and CHOICE View 1,010 Replies 1
Original Poster Posted 2003-12-30 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 177
Posts 21
Joined 2003-09-02 00:00
22-year member
UID 9354
Gender Male
Status Offline
I read the moderator's tutorial, but I still don't really understand it. I want a few more detailed example scripts.
Please give me some guidance, experts.
For example, I want to delete everything on drive C except the WZ folder. No matter what it is. Delete it all! What would the standard syntax be like?
I also especially want to read a book about DOS commands, with an emphasis on batch files. Do any of you experts have any recommendations! If HELP can be offered.
I would be extremely grateful.
Floor 2 Posted 2003-12-31 00:00 ·  中国 广东 汕头 澄海区 电信
初级用户
老大不小
Credits 270
Posts 37
Joined 2003-12-31 00:00
22-year member
UID 14687
Gender Male
Status Offline
Create a batch file like this
_____________
@echo off
move c:\wz d:\wz
deltree /y *.* >null
move d:\wz c:\wz
______________

Your system needs to have two or more partitions,
and the free space on the second partition has to be larger than c:\wz.
In the current path there need to be these two files: move.exe and deltree.exe.
C:\>给我$100,0000
Bad command or file name
Forum Jump: