![]() |
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-03 17:13 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » [Attention] Batch Processing Diagnosis Special Room |
| Printable Version 17,407 / 172 |
| Floor151 光与梦想 | Posted 2004-01-16 00:00 |
| 初级用户 Posts 3 Credits 114 | |
|
Thanks
|
|
| Floor152 浪里淘沙 | Posted 2004-01-25 00:00 |
| 初级用户 Posts 5 Credits 122 | |
| Floor153 iceboy | Posted 2004-01-26 00:00 |
| 银牌会员 Posts 512 Credits 1,681 | |
| Floor154 浪里淘沙 | Posted 2004-01-27 00:00 |
| 初级用户 Posts 5 Credits 122 | |
| Floor155 qwer | Posted 2004-01-31 00:00 |
| 初级用户 Posts 1 Credits 105 | |
| Floor156 5460myfriend | Posted 2004-02-09 00:00 |
| 初级用户 Posts 11 Credits 157 | |
|
I have a question about a batch file and would like to ask everyone.
> 1. if not exist c:\ucdos.bat goto win98 > ...... > etx cl198 > :wing98 > ...... > Among them: what does this line mean, etx cl198? > > 2. pause > nul > > Question: I remember that "pause" alone is enough for pausing. What does the following ">nul" mean? > > 3. mdir c:\ah /m /f5000000 > if errorlevel 1 goto inset1 > goto help > :inset1 > ...... > Question: what do the last 2 parameters of the command that creates directory AH mean? What error is line 2 testing for, and is line 3 jumping to the HELP section? I couldn't find the start of HELP in the whole batch file. > > 4. In a batch file, can .TXT and .xls documents be opened just like running .COM and .BAT? > 5. In a batch file, is it possible to test whether a hard disk partition exists? Like in #1 where it tests whether a specified file exists, for example before executing MD F:\HYQ, first test whether F exists? > 6. Before I execute (by default) MD F:\HYQ, I want to give the user a prompt so the user can specify the directory name, and then use that directory name in the following commands. It's a bit like entering a string from the keyboard in C. Can this be done in a batch file? How do I write it? Especially questions 5 and 6? |
|
| Floor157 5460myfriend | Posted 2004-02-12 00:00 |
| 初级用户 Posts 11 Credits 157 | |
|
Why is nobody here???????????????
|
|
| Floor158 defrag | Posted 2005-01-08 00:00 |
| 中级用户 Posts 570 Credits 456 | |
This is a *.bat file I wrote by copying the example in a book, but it gives an error when run. @echo off choice /c:mde mem,defrag,end if errorlevel 3 goto end(you should test the highest error code value first) if errorlevel 2 goto defrag if errotlevel 1 goto mem :mem mem goto end :defrag c:\windows\defrag.exe goto end :end echo good bye |
|
| Floor159 defrag | Posted 2005-01-08 00:00 |
| 中级用户 Posts 570 Credits 456 | |
The following is quoted from iceboy's post on 2003-10-6 15:42:54: We found that all of you have gotten the CHOICE method wrong!!! If something goes wrong, I won't take responsibility @echo off f:\pillow\dos\tw.exe set path=f:\pillow\dos;e:\ghost echo. echo MS-DOS 7.10 boot menu echo. echo 1. Boot to DOS echo 2. Back up system echo 3. Restore system echo. choice /c:123 /n /t:1,30 Please choose: if errorlevel 3 goto DOS if errorlevel 2 goto BACKUP if errorlevel 1 goto RESTORE OSgoto exit :BACKUP ghost -clone,mode=pdump,src=1:1,dst=e:\ghost\win2k_1.gh1 -fx -rb goto exit :RESTORE ghost -clone,mode=pload,src=e:\ghost\win2000.gh1,dst=1:1 -rb :exit |
|
| Floor160 13670767243 | Posted 2005-01-09 00:00 |
| 初级用户 Posts 19 Credits 102 | |
|
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 CThe meaning above is to assign all the characters after the equals sign "=" to the variable %LglDrv%. |
|
| Floor161 北山愚公 | Posted 2005-02-13 00:00 |
| 初级用户 Posts 15 Credits 154 | |
|
This post is really great and very valuable as a reference. It ought to be moved to the front, bump!!!
|
|
| Floor162 defrag | Posted 2005-04-23 00:00 |
| 中级用户 Posts 570 Credits 456 | |
|
Verifying the "Godd Bach" conjecture (please add odd numbers)
|
|
| Floor163 defrag | Posted 2005-04-23 00:00 |
| 中级用户 Posts 570 Credits 456 | |
|
I got it, but I can't understand it
|
|
| Floor164 defrag | Posted 2005-04-23 00:00 |
| 中级用户 Posts 570 Credits 456 | |
|
Use 【code】【/code】 (the English ones; right now I can only write them in Chinese) to enter indented text
|
|
| Floor165 defrag | Posted 2005-04-23 00:00 |
| 中级用户 Posts 570 Credits 456 | |
|
If you want to ask, go find willsort. She's very familiar with this, a batch file expert
|
|
| Prev 1 … 8 9 10 11 12 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |