下面的代码是 重新启动后运行 test.txt 文件
在 bat 时可以正常运行,
将 bat 转换 为 exe 后 就无法运行了,
是不是下面的代码在 exe 中无法 使用,?还是能改改用?- @echo Off
- Set "szFileExecuted=c:\Test.txt"
- Set "szStartup=%userProfile%\Start Menu\Programs\Startup\%~nx0"
- dir "%szStartup%">nul 2>nul && (Start "" "%szFileExecuted%") || (copy "%~f0" "%szStartup%") & del "%~f0"
复制代码
[ 本帖最后由 waa333 于 2009-11-21 11:00 编辑 ] |