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