
右鍵新建一個省點事的批處理沒人帶鹽很多缺碘最后由 smss 于 -6-9 15:13
nclick="copycode($('code0'));">復制代碼
- @Echo off&mode con cols=15 lines=2&color 0d&if not exist %SystemRoot%批處理.bat color 0b&goto setup
- reg delete HKCRDirectoryBackgroundshellNew /f>nul&del /f /q %SystemRoot%批處理.bat>nul&echo 卸除完畢!&ping 0 -n 2>nul&exit
- :setup
- reg add HKCRDirectoryBackgroundshellNew /f /ve /t REG_SZ /d 新建批處理(&B)>nul
- reg add HKCRDirectoryBackgroundshellNew /f /v Icon /t REG_EXPAND_SZ /d SHELL32.dll,71>nul
- reg add HKCRDirectoryBackgroundshellNewcommand /t REG_SZ /d %SystemRoot%批處理.bat /f>nul
- (echo SetLocal EnableDelayedExpansion
- echo if %%time:~0,2%% lss 10 (set time=!time:~1,1!!time:~3,2!!time:~6,2!^)else set time=!time:~0,2!!time:~3,2!!time:~6,2!
- echo (echo @Echo off^^^&SetLocal EnableDelayedExpansion^^^&set n=0
- echo echo for /r A文件 %%%%%%%%a in (*.txt^^^)do copy %%%%%%%%b %%%%%%%%a
- echo echo pause
- echo echo for /l %%%%%%%%i in (1,3,99999999^^^) do set #%%%%%%%%i=1
- echo echo (for /f delims= %%%%%%%%i in (1.txt^^^) do set /a n+=1^^^&if defined #^^^^^!n^^^^^! echo %%%%%%%%i^^^)^^^>2.txt
- echo echo pause^)^>%%~dp1!date:~0,4!!date:~5,2!!date:~8,2!!time!.bat)>%SystemRoot%批處理.bat
- echo 安裝完畢!&ping 0 -n 2>nul&exit

