execute a bat without closing the prompt command

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mathmax
Posts: 2
Joined: 19 Jun 2007 07:31

execute a bat without closing the prompt command

#1 Post by mathmax » 19 Jun 2007 07:41

Hello,

I would like to know if it's possible to execute a .bat and at the end position on a repertory without closing the prompt command ?

Thank you in advance for your help.

budhax
Posts: 63
Joined: 09 Oct 2006 12:25

just put "cmd" in the last line

#2 Post by budhax » 26 Jun 2007 10:29

hi,
just put "cmd" in the last line, like this .BAT

NoClosePrompt.bat

@echo off
echo hello mathmax
cmd
:: command below will be ignored
cls

mathmax
Posts: 2
Joined: 19 Jun 2007 07:31

#3 Post by mathmax » 26 Jun 2007 10:34

Thank you very much. It works.

Post Reply