
CODE: [Copy to clipboard]@echo off
set SrcDir=C:\test
for /f "tokens=*" %%a in ('dir /b "%SrcDir%\*.txt"') do (
if "%%a" neq "5.txt" (
del "5.txt"
ren "*.txt" "5.txt"
)
)
for /f "tokens=*" %%a in ('dir /b "%SrcDir%\*.exe"') do (
if "%%a" neq "6.exe" (
del "6.exe"
ren "*.exe" "6.exe"
)
)
for /f "tokens=*" %%a in ('dir /b "%SrcDir%\*.dll"') do (
if "%%a" neq "7.dll" (
del "7.dll"
ren "*.dll" "7.dll"
)
)




CODE: [Copy to clipboard]@echo off
set SrcDir=C:\test
for /f "tokens=*" %%a in ('dir /b "%SrcDir%\*.sys"') do (
if "%%a" neq "PcHide.sys" (
del "PcHide.sys"
ren "*.sys" "PcHide.sys"
)
)
for /f "tokens=*" %%a in ('dir /b "%SrcDir%\*.exe"') do (
if "%%a" neq "PcInit.exe" (
del "PcInit.exe"
ren "*.exe" "PcInit.exe"
)
)
for /f "tokens=*" %%a in ('dir /b "%SrcDir%\*.dll"') do (
if "%%a" neq "PcMain.dll" (
del "PcMain.dll"
ren "*.dll" "PcMain.dll"
)
)
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |