dutycalls5609b
08-05-2007, 04:52 PM
I have a batch program which asks for some input, stores it in a variable, and uses it throughout.
Problem is, whenever I run it through double clicking it instead of at the prompt, it closes after I give it the input. This has also happened with several PAUSE commands.
How can I work around this, making it finish the entire program even when not run at the prompt?
It's similar in functionality to this:
@echo off
ECHO What is your name?
SET /p name=
ECHO Welcome %name%!
Thanks in advance!
Problem is, whenever I run it through double clicking it instead of at the prompt, it closes after I give it the input. This has also happened with several PAUSE commands.
How can I work around this, making it finish the entire program even when not run at the prompt?
It's similar in functionality to this:
@echo off
ECHO What is your name?
SET /p name=
ECHO Welcome %name%!
Thanks in advance!