仔细看好了:- C:\Documents and Settings\Administrator\??>type aa.bat
- @echo off
- for /f "skip=1 delims=" %%a in ('wmic process where "name='qq.exe'" get ExecutablePa
- h') do set "var=%%~dpa"
- set "var=%var:~,-1%"
- echo %var%
- echo.&pause
- C:\Documents and Settings\Administrator\??>aa.bat
- D:\Program Files\Tencent\QQ
-
-
- Press any key to continue . . .
复制代码
[ 本帖最后由 pusofalse 于 2008-10-6 20:10 编辑 ] |