on 07-19-2017 4:08 PM
Hi All,
I have created abc.bat file which is running my ORCA script. abc.bat file I'm trying to execute through PB RUN function it's working fine. In the same way I have other one extract.bat file it's not working when I was executing through PB RUN commend. PB RUN commend is returning 1 in both case.
There are not syntax error in both bat files because of both are working when I try to run from commend prompt.
abc.bat file:
CD\
CD C:\Test folder
ORCASCR125.EXE CCNXDST.DAT
extract.bat:
"C:\Program Files\7-Zip\7z.exe" x "c:\test folder\myzip.7z" -o"C:\test folder" -y
The return code from the Run function only indicates that it was able to start the external program, in this case the DOS session that runs the command file. The Run function returns immediately and the next line of code is executed, it doesn't wait for the external program to finish.
I have a code example of RunAndWait which also can give you a return code from the external program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.