您的位置:首页 > 其它

Calling a Batch File/EXE from an SQR

2009-01-09 14:48 253 查看
Use the following code to call a batch file or executable from an SQR. Put the complete path of the batch or executable in the variable $command_line. If $message is not 0 then you have an error from the batch / exe

!----------------------------------------------------------------------

! Call-Command

! DESCR: This procedure is used to make a OS call to the EXE

! executable.

!----------------------------------------------------------------------

BEGIN-PROCEDURE call-command

display 'CALL-COMMAND PROCEDURE'

CALL SYSTEM USING $command_line #status WAIT

let $Message=' Operating system return code = ' // to_char(#Status)

display '$command_line: ' noline

display $command_line

display $Message

end-procedure call-command

!----------------------------------------------------------------------
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐