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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS BAT-files

Status
Not open for further replies.

telande35

Programmer
Nov 27, 2004
24
BE
Hey,

I have two .BAT files . I made a new ALL.BAT file that excecutes the 1.BAT and 2.BAT as follows :

echo "Start 1"
1.BAT
echo "Start2"
2.BAT
echo "End"

But he stops after executing 1.BAT.
1.BAT and 2.BAT contains only an echo.

What is wrong here,
Thanks

 
Does it help if you use the 'call' keyword

echo "Start 1"
call 1.BAT
echo "Start2"
2.BAT
call echo "End"



"I would rather have a free bottle in front of me, than a pre-frontal lobotomy..."

-Shrubble
 
Or even

echo "Start 1"
call 1.BAT
echo "Start2"
call 2.BAT
echo "End"


-------------------------------

If it doesn't leak oil it must be empty!!
 
I'm sorry, I screwed that one up!!! Shoulda checked myself before submitting...

"I would rather have a free bottle in front of me, than a pre-frontal lobotomy..."

-Shrubble
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top