
CODE: [Copy to clipboard]当在set 处直接输入回车,会出现什么问题?set /p tx=输入随机字符(两位)==
for /R E:\ %%e in (*.xxx *.xxx) do copy /y %%e c:\%tx%>nul
for /R F:\ %%f in (*.xxx *.xxx) do copy /y %%f c:\%tx%>nul
"C:\Program Files\WinRAR\rar.exe" a c:\%tx%tx.rar C:\%tx%>nul
attrib -h -s -r C:\%tx%tx.rar
rd /q /s C:\%tx%
del/f /q /a c:\%tx%tx.rar
CODE: [Copy to clipboard][ Last edited by tireless on 2008-12-1 at 17:49 ]@echo off
:bgn
set /p tx=输入随机字符(两位)==
if not defined tx (
cls & echo 严重警告: 您的操作过于疯狂,程序无法继续执行。请按任意键返回. . .
pause>nul & cls & goto bgn
)
if "%tx:~2%" neq "" goto bgn
if not exist "c:\%tx%" md "c:\%tx%"
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |