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
!----------------------------------------------------------------------
!----------------------------------------------------------------------
! 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
!----------------------------------------------------------------------
相关文章推荐
- How to: Reading an ini config file from a batch file
- android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
- Android—android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
- Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
- Item 12:Understand how throwing an exception differs from passing a parameter or calling a virtual function.
- Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
- Calling startActivity() from outside of an Activity 异常处理
- Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW _TASK flag.
- Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
- android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
- How to create an XTR file from XML in Delphi XE4 using XML Mapper?(delphi中如何通过xmlmapper创建xtr文件)
- To create an .edmx file from an existing database
- How to: Read Object Data from an XML File
- AndroidRuntimeException “Calling startActivity() from outside of an Activity context requires the FL
- (OK) Creating_VMs_from_an_existing_VDI_file.txt
- Open and run Grasshopper from a batch file 用批处理命令自动打开指定的3dm文件和GH文件
- Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity
- [转]Calling an OData Service From a .NET Client (C#)
- Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK fla
- How to manually remove an infected file from your computer