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
> ......
> Here: what does this line etx cl198 mean?
>
> 2. pause > nul
>
> Question: I remember that using “pause” alone is enough to pause, so what does the “>nul” after it 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 creating directory AH mean? What error is the 2nd line checking for? Is the 3rd line jumping to the HELP section?
I couldn’t find the start of HELP anywhere in the whole batch file?
>
> 4. In a batch file, just like executing .COM and .BAT, can it open .TXT and .xls documents?
> 5. In a batch file, can it determine whether a hard disk partition exists? Like in #1 where it checks whether a specified file exists, before I
execute MD F:\HYQ can I first check 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
themselves, and then use that directory name in the following commands, a bit like entering a string from the keyboard in C language. Can this be done in a batch file? How do I write it?
> 1. if not exist c:\ucdos.bat goto win98
> ......
> etx cl198
> :wing98
> ......
> Here: what does this line etx cl198 mean?
>
> 2. pause > nul
>
> Question: I remember that using “pause” alone is enough to pause, so what does the “>nul” after it 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 creating directory AH mean? What error is the 2nd line checking for? Is the 3rd line jumping to the HELP section?
I couldn’t find the start of HELP anywhere in the whole batch file?
>
> 4. In a batch file, just like executing .COM and .BAT, can it open .TXT and .xls documents?
> 5. In a batch file, can it determine whether a hard disk partition exists? Like in #1 where it checks whether a specified file exists, before I
execute MD F:\HYQ can I first check 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
themselves, and then use that directory name in the following commands, a bit like entering a string from the keyboard in C language. Can this be done in a batch file? How do I write it?


