IFTHEN/&ACTPRT == 1
MESSG/'This GRIP program requires an open work part!',$
'Please open or create a new part and try again.'
JUMP/hal:
ELSE/
MASK/ALL
ENDIF
fdel/'e:\Calculator.bat',iferr,new:
new:
create/txt,1,'e:\Calculator.bat'
write/1,'@echo off'
write/1,'start "title" D:\CZK_MOULD\other\suliao\suliao-v1.0.exe'
write/1,'@echo on'
file/txt,1
fetch/txt,1,'e:\Calculator.bat',iferr,new:
fterm/txt,1
xspawn/'e:\Calculator.bat' 这个可以调用 grip添加调用程
fdel/'e:\Calculator.bat'
hal:
halt
|
以下的代码主要是起到什么作用
fdel/'e:\Calculator.bat',iferr,new:
new:
create/txt,1,'e:\Calculator.bat'
write/1,'@echo off'
write/1,'start "title" D:\CZK_MOULD\other\suliao\suliao-v1.0.exe'
write/1,'@echo on'
file/txt,1
fetch/txt,1,'e:\Calculator.bat',iferr,new:
fterm/txt,1
fdel/'e:\Calculator.bat'
本帖最后由 gdboy 于 2011-1-8 22:17 编辑 |