Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a DOS batch file within Clarion 5.5

Status
Not open for further replies.

gonzalezw

Programmer
Feb 25, 2002
4
US
I have a DOS Batch script file which checks for the existing of some files. If the files are present the another DOS BATCH script gets executed which will execute a DOS program. These steps works perfect it I do them in DOS mode of windows. I have a small program which detect if there was any activity in a windows directory and I want to execute the first DOS Batch routine. I coded the following command in my Clarion program.

RUN('C:\TESTFILE\CHECKFILE.BAT',1)

What is happening is that whenever there is some activities in the Directory the batch file CHECKFILE.BAT gets executed but that Batch routine calls another DOS Batch script and that part is not working. Only the first script gets executed and returns to the clarion program.

Does anyone knows how to fix this problem?

Thanks and may god bless.
William Gonzalez
gonzalezw@yahoo.com
 
To execute a batch file from a batch file you have two options.
If you don't won't control to return to the first batch file then just type the batch filename to execute.
To get control back type CALL filename.bat
This makes the 2nd batch file act like a subroutine.

You didn't say what the code line that does the calling was so I am assuming your problem is this simple one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top