Page 1 of 1

calling a bat file...

Posted: 09 Jul 2011 03:56
by kumar_kondapalli
Can we call one bat file from another bat file...

Re: calling a bat file...

Posted: 09 Jul 2011 06:17
by aGerman
Your question is the answer. CALL

Regards
aGerman

Re: calling a bat file...

Posted: 11 Jul 2011 01:17
by kumar_kondapalli
hey thanks a lot..

But since I am new can you please give me a working example if you have some time.?

Please apologize for this inconvenience.

Thanks,
San

Re: calling a bat file...

Posted: 11 Jul 2011 04:00
by shiva
hai
i am giving you example for calling a batch file,

Ex: call calc

this will call default calculator ,
thank you

(create a new batch file and just copy paste " call calc" save it and execute, it will call calculator)

Re: calling a bat file...

Posted: 11 Jul 2011 17:17
by Cleptography
....or script to script

BATCH1.BAT

Code: Select all

@echo off

echo;Hello World
Call batch2.bat
exit /b

BATCH2.BAT

Code: Select all

@echo off

echo;I was called from BATCH1.BAT
exit /b

Re: calling a bat file...

Posted: 12 Jul 2011 01:04
by kumar_kondapalli
Thanks a lot :-)

Re: calling a bat file...

Posted: 02 Aug 2011 06:03
by shiva
you are welcome