Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error using wscript.shell
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error using wscript.shell
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01666259
Message ID:
01666259
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform