KB-42306: Running ExecuteExternalApp method in a server’s script.

Question:

How can I run the ExecuteExternalApp method in a server’s script?

Solution:

To do so, you can use the script below, which will perform the same task:

Set shell = CreateObject("WScript.Shell")
shell.Run "C:\file.txt"
Set shell = Nothing

NOTE: There are certain restrictions to using Shell object in Win XP, since in Windows Vista and higher versions the services running in the SYSTEM account (such as E3Run) can no longer show windows; that is, they can no longer “interact with the desktop”. In this case, the alternative is to add the scripts running programs with windows only in Viewer events, via ExecuteExternalApp method, or via Run Application pick. To do so, the folder holding the file must be shared on the network in order to be accessed from different client viewers/machines.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *