• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Batch file... need Help!

Karsten

Platinum Member
I am trying to come up with a batch file for a job I am working on. Below is a small example of the basics what I am trying to do.
The question I have. Once I call on Notepad.exe the batch job pauses until I close notepad (and yes, eventually I will run something different the notepad, this is just for test purposes) or whatever app I am calling to run.
How can I call a program and then have the batch process continue regardless if the app stays open or not?


--------------
Example
--------------


echo off
echo.
echo This batch now runs:
echo notepad
echo Hit any Key to continue
echo.
pause
choice.exe /t:N,2 > NUL
call notepad.exe
choice.exe /t:N,2 > NUL
cls
echo off
echo.
cls
echo 1
choice.exe /t:N,2 > NUL
cls
echo 2
choice.exe /t:N,2 > NUL
cls
echo 3
choice.exe /t:N,2 > NUL
echo.
exit

-------------------------------
choice.exe is a simple file that allows me to pause for any time I want to. Not important for my question. It's simply in there to give me a visual output of the batch process.
 
Back
Top