- ·上一篇文章:for语句中的几种分隔符形式
- ·下一篇文章:Norton Ghost批处理命令用法详细介绍
hitme批处理集合
!y!>>tmp2.txt)))) set y=%%j set x=%%i) ) if !x! lss 10 (echo.000!x! !y!>>tmp2.txt) else ( if !x! lss 100 (echo.00!x! !y!>>tmp2.txt) else ( if !x! lss 1000 (echo.0!x! !y!>>tmp2.txt))) endlocal sort /r tmp2.txt>end.txt del tmp*.txt start end.txt word_num.rar 40. sample 设源文件为text.txt 欲替换problem为hitme,最简单的替换 代码: setlocal ENABLEDELAYEDEXPANSION for /f "delims=" %%i in (text.txt) do set n=%%i && set m=!n:problem=hitme! && echo !m! >>replace.txt endlocal start replace.txt att-2.rar 41. usb& 请谨慎使用 devcon挺好使的,就为推荐它 @echo off for /f %%i in ('devcon findall ^=usb ^| find ":"') do devcon remove "@%%i" for /f %%i in ('devcon findall usb* ^| find ":"') do devcon remove "@%%i" devcon rescan renew_usb.rar
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]
hitme批处理集合