Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to launch a .exe from a catscript? 1

Status
Not open for further replies.

gap69

Computer
Jun 23, 2003
12
0
0
FR
Hi everybody,
I have developped a little program in VB and I have made an .exe file with it I 'd like to launch it from a catscript.

What I have tried :
Language="VBSCRIPT"

Sub CATMain()

call CATIA.SystemService.ExecuteBackGroundProcessus("D:\Stage\visual basic\T-tools.exe")


End Sub

and I had this answer : cannot execute background processus? why?

Thanks for help.
 
Replies continue below

Recommended for you

hi,

try this code

**********code********************
Language="VBSCRIPT"

Sub CATMain()
dim sh,s
Set sh = CreateObject("WScript.Shell")


s ="f:\etc\etc.exe"
sh.Run s, 1, false
End Sub
************************************
best regards

Gokalp UYSAL
 
Status
Not open for further replies.
Back
Top