How to launch a .exe from a catscript?
How to launch a .exe from a catscript?
(OP)
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.
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.





RE: How to launch a .exe from a catscript?
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
RE: How to launch a .exe from a catscript?
GaP69