Language="VBSCRIPT"
Sub CATMain()
Set WshShell = CreateObject("WScript.Shell")
'Run the hta.
hta = "c:\Temp\E3source\CATVBS\your_file.hta"
WshShell.Run hta , 1, true
Set WshShell = Nothing
End Sub
运行exe文件
^{pr2}$
或者
Sub CATMain()
call CATIA.SystemService.ExecuteBackGroundProcessus ("c:\Temp\your_file.exe")
End Sub
运行bat文件
Sub CATMain()
CATIA.SystemService.ExecuteProcessus "C:\Temp\your_file.bat"
End Sub
运行vbs文件
Language="VBSCRIPT"
Sub CATMain()
call CATIA.SystemService.ExecuteBackGroundProcessus("WScript.exe c:\CAT\copy_folder.vbs")
End Sub
您始终可以创建一个CATScript/catvbs/catvba,在CATIA中调用您想要的(宏、应用程序…),并在工具栏上为这些“启动器”指定一个图标。在
下面的代码示例在CATScript中。在
例如运行hta文件。在
运行exe文件
^{pr2}$或者
运行bat文件
运行vbs文件
相关问题 更多 >
编程相关推荐