|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转新大榭论坛!
您需要 登录 才可以下载或查看,没有账号?注册
x
- Function GetSetupPath(AppName As String)9 `" U& x. H6 u6 w; h9 u
- Dim WSH As Object$ P" F- C8 r0 @, i, Y( ~5 H2 h
- Set WSH = CreateObject("Wscript.Shell"). [: g5 p- V$ r" O; M( z
- GetSetupPath = WSH.RegRead("HKEY_LOCAL_MACHINE\Software" _) X8 ?# ?: w' `6 Y
- & "\Microsoft\Windows\CurrentVersion\App Paths" _
2 y' ^, E4 ~7 P+ o - & AppName & "\Path")
5 h+ w2 Y+ e0 p' k/ M5 I/ s* F4 W8 u o - Set WSH = Nothing
0 f. _) q) N, }. ?0 u6 {# I - End Function
! F4 Y% X! e5 Y+ ]8 \, i! `! { - Sub WinRARPath()
3 Z& `) O* s+ @4 Z* H+ z - MsgBox GetSetupPath("360Safe.exe")% V% [3 ^5 @0 L D4 K3 W2 n% c
- End Sub& l$ n# r( c, L4 x7 q
复制代码 |
|