Try something like :
---------------------------------------------
Dim p_ID
Dim FullPath As String
FullPath="C:\<prog_path>\BegUI.exe"
p_ID = Shell(FullPath,1)
---------------------------------------------
now you can manage BegUI.exe using p_ID (task identifier), like this:
AppActivate p_ID
Application.SendKeys "%{F4}", True ' close BegUI.exe
I think what you tried didn't work 'cause BegUI.exe is not the Win cmd shell ,
use .Run to execute shell commands .
Hi there
I want to run an application (say BegUI). I tried to open the script conf.vbs as below
Set objShell = WScript.CreateObject("WScript.Shell")
ObjShell.run("BegUI.exe") Or ObjShell.run("FullPath")
Set ObjShell=Nothing
But it says that file not found in line 2.
I confirmed that is the right path. I tried to run it from Start->Run->Full Path of BegUI.exe. It has been executed well. When I double click the application file, it works fine.
The problem here is it is not executed when I run using above script.
Note: BegUI is an windows application. This application is an User Interface Application.When you double click the exe, It displays just small menu window as you see when u right click any file. So My guess is I'm not recognizing the correct format or file.
Can anybody help me runinng the above script giving me some suggestions?
Thanks