View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
rhXX rhXX is offline
external usenet poster
 
Posts: 9
Default VBScript from VBA excel / wshShell.Run failed, error 80070483

'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!