本帖最后由 121044246 于 2014-4-13 01:16 编辑 $InstallDir_AU3 = StringLeft(@AutoItExe, StringInStr(@AutoItExe, "", 0, -1) - 1)
$peizhi = "1=程序所在目录 [&P];%windir%\explorer.exe %app%"
$1 = StringInStr($peizhi, "%app%")
$2 = StringInStr($peizhi, "%windir%")
If $1 <> 0 And $2 <> 0 Then
$3 = StringReplace($peizhi, '%app%', $InstallDir_AU3)
$4 = StringReplace($3, "%windir%", @WindowsDir)
MsgBox(0, "", $4)
ElseIf $1 <> 0 And $2 = 0 Then
$3 = StringReplace($peizhi, '%app%', $InstallDir_AU3)
MsgBox(0, "", $3)
ElseIf $1 = 0 And $2 <> 0 Then
$4 = StringReplace($3, "%windir%", @WindowsDir)
MsgBox(0, "", $4)
EndIf
|