calling a bat file...

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
kumar_kondapalli
Posts: 32
Joined: 08 Jul 2011 03:38

calling a bat file...

#1 Post by kumar_kondapalli » 09 Jul 2011 03:56

Can we call one bat file from another bat file...

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: calling a bat file...

#2 Post by aGerman » 09 Jul 2011 06:17

Your question is the answer. CALL

Regards
aGerman

kumar_kondapalli
Posts: 32
Joined: 08 Jul 2011 03:38

Re: calling a bat file...

#3 Post by kumar_kondapalli » 11 Jul 2011 01:17

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

shiva
Posts: 18
Joined: 11 Jul 2011 03:53

Re: calling a bat file...

#4 Post by shiva » 11 Jul 2011 04:00

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)

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: calling a bat file...

#5 Post by Cleptography » 11 Jul 2011 17:17

....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

kumar_kondapalli
Posts: 32
Joined: 08 Jul 2011 03:38

Re: calling a bat file...

#6 Post by kumar_kondapalli » 12 Jul 2011 01:04

Thanks a lot :-)

shiva
Posts: 18
Joined: 11 Jul 2011 03:53

Re: calling a bat file...

#7 Post by shiva » 02 Aug 2011 06:03

you are welcome

Post Reply