- echo off
- cd ..\..
- cd /d c:\.
- if exist c:\windows\system32\defrag.exe (echo c盘下有defrag.exe存在) else (echo c盘下不存在defrag.exe)
- if exist c:\windows\system32\scandisk.exe (echo c盘下有scandisk.exe存在) else (echo c盘下不存在scandisk.exe)
- pause
- cd /d c:\.|dir/w
- set c
- set com
- set /a num=14+16
- echo %num%
- set /p str=请输入你想输入的字符:
- echo 你输入的字符串为:%str%
- pause>nul
- @echo off
-
- for /l %%i in (1 1 70) do (
-
- set /p=O<nul
-
- for /l %%a in (1 1 50) do ver>nul
-
- )
-
- pause>nul
-
- pause
复制代码
|