Another way to keep terminal window open

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
samsonwilliams
Posts: 1
Joined: 29 May 2024 04:05

Another way to keep terminal window open

#1 Post by samsonwilliams » 29 May 2024 19:38

At the end of the batch file I have "pause" to keep the window open. However, any time I press any key, as the terminal states, this causes the window to close. I would like to keep the window open so that I can do a search for keywords within the terminal window using CTRL+F. Is there another function besides "pause" that can achieve this?

Thanks for your help on this.

Sponge Belly
Posts: 231
Joined: 01 Oct 2012 13:32
Location: Ireland
Contact:

Re: Another way to keep terminal window open

#2 Post by Sponge Belly » 30 May 2024 13:49

Hi Samson,

Have you tried opening cmd.exe and running the batch file from the command line?

Hope this helps! :wink:

- SB

Post Reply