输出很正常.
调试环境设置: 取名为 "!CMD.bat"
- @echo off
- call start cmd /k "path=%path%;%~d0\DOS\网络;%~d0\DOS\command\第三方命令行程序;%~d0\DOS\command;%~d0\DOS\源码;%~d0\DOS\sysbkup"
复制代码
你可以更改为自己的设置. 我不收版权税哦.
调试用P: 取名为 "test.bat"
- ::set "sourFile=源文件" set "destFile=目标文件" 行列:row 总数sum 默认default pushd/popd echo %errorlevel%
- ::前缀Prefix 后缀Suffix
- ::if defined set "destFolder=目标文件夹" 计数Count %ERRORLEVEL%
- ::for /f "delims=\" %%i in ('if "%isXP%"^=^="1" ^(fsutil fsinfo drives^|find /v ""^) else ^(for /f %%m in ^('fsutil fsinfo drives^^^|find /v ""'^) do echo %%m^)') do (
- ::for /f "eol= skip= tokens=* delims= " %%a in ('') do (
- ::for /f "delims=" %%i in ("!ee!") do echo %%~nxi>>hf_1.txt
- ::for /f "skip= tokens=1,2,3* usebackq delims=" %%a in ("音频 说明.txt") do echo %%a
- ::set "cmdstr=dir /ad /b "%APPDATA%"^|findstr /lixv "Microsoft SogouPY SogouPY.users""
- ::for /f "delims=" %%a in ('%cmdstr%') do echo rd /s /q "%APPDATA%\%%a"
- ::echo ①②③④⑤⑥⑦⑧⑨⑩
- @echo off
- ::setlocal enabledelayedexpansion&cls
- path=%path%;%~d0\DOS\网络;%~d0\DOS\command\第三方命令行程序;%~d0\DOS\command;%~d0\DOS\源码;%~d0\DOS\sysbkup
- :start ============================================================
- set t1="%time:~0,2%"
- set t2="%time:~3,2%"
- echo %t1% --- %t2%
-
- :end =============================================================
- endlocal&setlocal disabledelayedexpansion&echo 按任意键退出&pause>nul
- ::(mode con cols=80 lines=25&color 07&CHCP 437&graftabl 936)>nul
- for /f "tokens=2" %%a in ('CHCP') do (if not "%%a"=="437" (color 07&CHCP 437&graftabl 936))>nul
- del sed??????
- cls&exit/b
- echo 退出...&ping/n 4 127.1>nul
- for /l %%a in (5,-1,0) do (set/p =退出... ^(%%a^)<nul&ping/n 2 127.1>nul)
- ::=======================MODE CODE==============================
-
- ::=======================END MODE===============================
- set "char=abcdefghijklmnopqrstvuwxyz"
- set "char=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- %%a %%b %%c %%d %%e %%f %%g %%h %%i %%j %%k %%l %%m %%n %%o %%p
- @echo.===== Ver: 1.0 =========================== 发布日期: 2010-08-10 =======
- @echo. BAT_NAME: findDupFile.bat
- @echo. 返回值: %ret_filename%
- @echo. 作用 : 根据MD5值查找重复文件
- @echo. 调用: findDupFile.bat Path [EXT]
- @echo. Path : 文件夹路径
- @echo. [EXT] : 文件后缀 如:"*.jpg *.bmp",带空格的必须用引号括起来
- @echo.====================== Copyright@ by hf-g 2010-08-10 [彭城] ============
- set "choice="&set/p choice=输入你的选择(1/2/q):
- if /i "%choice%"=="q" goto end
- echo %choice%|findstr "^[123]$">nul 2>nul&&goto choice%choice%
- goto end
- echo\相当于输入一个回车 退格符
- set/p =-<nul>con&set/p =\<nul>con&set/p =^|<nul>con&set/p =/<nul>con
- %* 从第一个参数开始的所有参数
- call echo %%text!a!%%
- taskkill /f /im regedit.exe 2>nul
- ::━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━
- ::————*————*————*————*————*————*————*————
复制代码
|