Computing.Net > Forums > Disk Operating System > Batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file

Reply to Message Icon

Name: Blane
Date: September 25, 2003 at 09:36:31 Pacific
OS: Windows 2000
CPU/Ram: P4 / 512
Comment:

I've tried several ways to get a batch file to install a few programs depending on the support group, including calling another batch file within another batch file. But everytime after the first app gets installed it closes out the batch file as well. Is there a way to keep the batch file alive to continue installing the other apps



Sponsored Link
Ads by Google

Response Number 1
Name: JackG
Date: September 25, 2003 at 12:50:06 Pacific
Reply:

Are you just invoking the second batch file are are you really calling it with a CALL statement? The CALL statement allow control to return back to the calling batch file. Invoking a second batch file with just its name and parameters does not return control back to the invoking batch file when done.

Any invoking of a secondary batch file in a chain of batch files breaks the chain. All levels have to have CALL statements. Most applicaion "install" batch files are not written to be CALL'ed, just invoked from a command line, so each one has to be modified to use CALL statements.


0

Response Number 2
Name: Blane
Date: September 29, 2003 at 04:25:17 Pacific
Reply:

No I was call'ing from the second batch file as well. I was calling the app's setup file......so maybe that's the reason it doesn't return. I may have to resort to perl....thought maybe I could just do this quick, and dirty.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch file

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html

Batch files - - Mapping network drive www.computing.net/answers/dos/batch-files-mapping-network-drive/3809.html

Pause batch file www.computing.net/answers/dos/pause-batch-file/2810.html