本帖最后由 不知道是谁 于 2017-9-13 19:26 编辑
- @echo off
- for /f "tokens=2 delims==" %%i in ('wmic process where "name='uninstall.exe'" get executablepath /value') do (
- set FilePath=%%i
- )
- mshta VBScript:Execute("Set Wsh=CreateObject(""WScript.Shell""):Set Lnk=Wsh.CreateShortcut(""uninstall.lnk""):Lnk.TargetPath=""%FilePath%"":Lnk.Save:close")
- pause
复制代码
|