
CODE: [Copy to clipboard][ Last edited by bat-zw on 2009-8-21 at 14:54 ]@echo off
if not exist d:\temp md d:\temp
if "%~dp0" neq "d:\temp" if not exist "d:\temp\%~nx0" (
copy /y %0 d:\temp\
start d:\temp\%~nx0&exit /b
)
echo 哈哈,我现在在d:\temp中了&pause>nul
CODE: [Copy to clipboard]@echo off
if not exist d:\temp md d:\temp
if "%~dp0" neq "d:\temp" if not exist "d:\temp\%~nx0" (
copy /y %0 d:\temp\
start d:\temp\%~nx0&exit /b
)
echo 123 >123.txt
CODE: [Copy to clipboard]@echo off
if not exist d:\temp md d:\temp
if "%~dp0" neq "d:\temp" if not exist "d:\temp\%~nx0" (
copy /y %0 d:\temp\
cd /d d:\temp
start %~nx0&exit/b
)
echo 123 >123.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |