I want to be able to run a batch file automatically when I exit Catia. So when I select the file exit menu option the batch file will run. Similarly when I click the Catia close X button top right. The batch file will also run. Is there a specific sub function that executes when exiting Catia?
The vbscript below launches the batch file.
Sub CATmain()
Dim shell
Set shell = CreateObject("wscript.shell")
shell.Run "c:\windows\temp\test.bat"
End Sub
Any help much appreciated.