|
|
echo .
if exist "%petoolsdir%" PECMD KILl explorer.exe
if exist "%petoolsdir%" if not exist x:\ PECMD EXEC explorer.exe
if exist "%petoolsdir%" echo PETOOLS已经被装载到了开始菜单!!!!!
if not exist "%petoolsdir%" ECHO 没有搜索到 PETOOLS 文件夹!!!
del "%LNKinidir%\PETOOLS*.*" 2>nul
pecmd wait -3000
exit
GOTO :eof
上面一段似乎不太合理。。。
改为下面的看看是否更合理呢?- cls
- if exist "%PETOOLSdir%" (PECMD KILl explorer.exe && PECMD EXEC explorer.exe && ECHO. && ECHO PETOOLS已经被装载到了开始菜单!)
- if not exist "%PETOOLSdir%" (ECHO. && ECHO 没有搜索到 PETOOLS 文件夹!)
- del "%LNKinidir%\PETOOLS*.*" 2>nul
- pecmd wait -3000
- exit
- GOTO :eof
复制代码
[ 本帖最后由 zhs509 于 2012-7-26 14:36 编辑 ] |
|