联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@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
@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
@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