Computing.Net > Forums > Windows 2000 > .bat file with start command and be

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

.bat file with start command and be

Reply to Message Icon

Original Message
Name: passionlessDrone
Date: December 13, 2004 at 06:41:46 Pacific
Subject: .bat file with start command and be
OS: win2k
CPU/Ram: intell / 500M
Comment:

Hello friends. I'm running win2K and am trying very hard to have a single batch file call two other batch files to run in parallel. This would appear to be very straightforward by simply use the 'start' command. Unfortunately, if I do so, I get the following error:

"The system cannot find the file C:\WINNT\system32\cmd.exe /e:32768."

If I use the call command, things work fine, but I am need of having both of the files running at the same time. I could simply kick off both bats via scheduler, but this seems like an ungraceful solution to something that should be easy. Keep in mind, during testing I'm trying to do this manually, from a command window, so cmd.exe can be found!

Can anyone help?

Thanks!
pd



Report Offensive Message For Removal


Response Number 1
Name: IVO
Date: December 13, 2004 at 08:16:22 Pacific
Reply: (edit)

Report *exactly* the Start command(s) you are trying to run.


Report Offensive Follow Up For Removal

Response Number 2
Name: passionlessDrone
Date: December 13, 2004 at 08:34:01 Pacific
Reply: (edit)

Hi IVO -

Um. OK.

start "some title" path_to_my_batfile/batfile_name.bat


Does this help?
pd


Report Offensive Follow Up For Removal

Response Number 3
Name: IVO
Date: December 13, 2004 at 09:08:52 Pacific
Reply: (edit)

As there is no switch /E:nnnnn for Cmd.exe that sounds like some weird side effect I can not figure out from your post.

So please post your Start line as it is (not a generic one) to let me examine it.


Report Offensive Follow Up For Removal

Response Number 4
Name: passionlessDrone
Date: December 13, 2004 at 10:11:03 Pacific
Reply: (edit)

Hi IVO -

Very well!

Contents of primary .bat file which I would like to use to kick off subsidiary .bat files:

***************************************
start "title" C:\APPLIC~1\OMS\EXECUT~1\cons1.bat
start "title" C:\APPLIC~1\OMS\EXECUT~1\cons2.bat
*************************************

You will have to trust me that the paths are OK. I can tell you that if I change the name of the last tag, cons1.bat, to something that doesn't exist, say, cons666.bat, that I get a cannot find file windows popup, so I am pretty sure this is not a bat pathing issue.

The contents of cons1.bat are pretty simple:
*************************************
set path=C:\bea\jdk141_05\bin;PATH%

java -classpath ../WEB-INF/lib/omsApp.jar;../WEB-INF/lib/framework.jar;../WEB-INF/lib/Log4J.jar;../WEB-INF/lib/activation.jar;

com/mps/integration/oms/services/ConsumptionInformationConsumer
**********************************

Essentially I am just asking some java classes to be called. The cons1.bat file can be started by itself and runs fine; I only get the failure if I try to use the 'start' command from another .bat file to kick it off. If I use the 'call' command it also works, except my business case dictates the programs called by cons1 and cons2.bat run in parallel.

Thank you so much!

pd


Report Offensive Follow Up For Removal

Response Number 5
Name: IVO
Date: December 13, 2004 at 14:28:00 Pacific
Reply: (edit)

To be short... I noticed the following crappy statement in your previous post that, if not a mismatch, may explain the crazy behavior of the Start command

set path=C:\bea\jdk141_05\bin;PATH%

where the mess is ;PATH% instead of ;%PATH% so destroying your current PATH variable leading to Cmd.exe not found.

Keep me posted.


Report Offensive Follow Up For Removal


Response Number 6
Name: Mechanix2Go
Date: December 13, 2004 at 18:42:54 Pacific
Reply: (edit)

IVO,

Yep

M2

Mechanix2@Golden-Triangle.com


Report Offensive Follow Up For Removal






Post Locked

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


Go to Windows 2000 Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software