글
VBS 외부 프로그램 실행 안될 때, 주의 사항.
V/VB
2014. 4. 25. 12:39
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""c:\Program Files\Mozilla Firefox\firefox.exe""")
Set objShell = Nothing
Note the extra ""s in the string. Since the path to the exe contains spaces it needs to be contained with in quotes. (In this case simply using "firefox.exe" would work).
Also bear in mind that many programs exist in the c:\Program Files (x86) folder on 64 bit versions of Windows.
'V > VB' 카테고리의 다른 글
How do I make a VBA count down timer for powerpoint (single slide no animation)? (0) | 2014.11.26 |
---|