Error when running WScript.Shell object (OLE ERROR -2147024894)

SOLVED

Hello Everyone,

I am trying to run a 3rd party exe on a button click using VB Script ,

The code is trowing (OLE ERROR -2147024894)

i have added the code and also the error message i got

******************************************************************************************

Dim ss
Set ss = CreateObject("WScript.Shell")
ss.Run "C:\sage100\Test\Test.exe ",1,true

Parents
  • +1
    verified answer

    Just an FYI.  I received this error on my desktop, yet had script working fine on other desktops.  My script was for a custom map button from code found here in Sage City.  I had upgraded my desktop from Windows 7 to Windows 10 but it still worked after that. It stopped working after I installed Microsoft Edge and Internet Explorer was removed and iexplore.exe was not longer available.  I ended switching to using chrome.exe anyway and all is fine now.  Could have just as easily used msedge.exe as well.  Hope this helps anyone else.  

Reply
  • +1
    verified answer

    Just an FYI.  I received this error on my desktop, yet had script working fine on other desktops.  My script was for a custom map button from code found here in Sage City.  I had upgraded my desktop from Windows 7 to Windows 10 but it still worked after that. It stopped working after I installed Microsoft Edge and Internet Explorer was removed and iexplore.exe was not longer available.  I ended switching to using chrome.exe anyway and all is fine now.  Could have just as easily used msedge.exe as well.  Hope this helps anyone else.  

Children
No Data