Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
'Set wshShell = CreateObject("Wscript.Shell")
'wshShell.Run ("C:\WINDOWS\system32\Wscript.exe " & fn) Shell "C:\WINDOWS\system32\Wscript.exe " & fn, vbHide Both wshShell.Run and Shell will do if you pass in the name of the executable (in my case "C:\WINDOWS\system32\Wscript.exe ") followed by the script name ("c:\tmp\bypass.vbs"). If you register .vbs file type to be opened by WSH executable you can use wshShell.Run (fn) without having to specify the name of the WSH executable. urkec tks urkec, yes i did found a mistake of my first bypass, i wrote directly to forum and noto copy and paste ... ok about wshSell.Run and Shell, now they are working ok writting explicity Wscript.exe tks a lot for the help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IWshRuntimeLibrary.WshShell.SpecialFolders requires a variant argument | Excel Programming | |||
Excel 97 error: 'Copy method of range class failed' | Excel Programming | |||
Wshshell / VB direction question | Excel Programming | |||
Error Excel: 1004 SaveAs method of Workbook class failed | Excel Programming | |||
HELP!! Excel 2000 Copy of worksheet class failed run time Error 1004 | Excel Programming |