Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error using wscript.shell
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Error using wscript.shell
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01666259
Message ID:
01666259
Views:
51
Hi there,

I am using this code to display pdf-files using the default viewer which is running on the system
      wsh = createobject("wscript.shell")
      wsh.run(cPDFFile,1,.T.) 
This opens the default viewer and waits until it is closed.
Nut when I use it on a win10-system, edge (which seems to be the
default viewer, if nothing else like the adobe reader ist installed) opens the pdf file but
an error occurs (translated from german):

Error 1429 OLE IDispatch Exceptioncode 0 from wshshell.run
Waiting for process not possible

Why does this happen? Because edge is more embedded than IE ever was and cannot finish?
Is there something I can do?

Best regards

Thomas
Next
Reply
Map
View

Click here to load this message in the networking platform