![]() |
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-16 07:53 |
47,813 topics / 349,903 posts / today 1 new / 48,258 members |
| DOS疑难解答 & 问题讨论 (解答室) » Detailed Usage of IF, FOR, GOTO, and CHOICE |
| Printable Version 1,060 / 1 |
| Floor1 学习之行者 | Posted 2003-12-30 00:00 |
| 初级用户 Posts 21 Credits 177 | |
|
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. |
|
| Floor2 哑巴 | Posted 2003-12-31 00:00 |
| 初级用户 Posts 37 Credits 270 | |
|
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. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |