- Thread Author
- #1
Hi Guys,
I have a one to run by you.
I have a simple Windows batch script I run in the morning that basically opens various programs I use for the day. Lazy doing this...yup LOL.
Issue is the command prompt window that pops up never closes after the script is run.
I have tried ending the script with both commands below and neither closes the window.
exit
cd "C:\Windows\System32\"
taskkill /IM cmd.exe /f
Here is a sample of what the batch script looks like except with one of the above commands added to the end:
@echo Starting Outlook
@echo off
cd "C:\Program Files\Microsoft Office\root\Office16\"
start OUTLOOK.EXE
if %errorlevel%==0 echo Successfully Launched Application
@echo Starting Temp Notepad
@echo off
cd "C:\Users\jbarber\Desktop\
start temp.txt
if %errorlevel%==0 echo Successfully Launched Application
echo.
Any ideas and thanks for your help?
I have a one to run by you.
I have a simple Windows batch script I run in the morning that basically opens various programs I use for the day. Lazy doing this...yup LOL.
Issue is the command prompt window that pops up never closes after the script is run.
I have tried ending the script with both commands below and neither closes the window.
exit
cd "C:\Windows\System32\"
taskkill /IM cmd.exe /f
Here is a sample of what the batch script looks like except with one of the above commands added to the end:
@echo Starting Outlook
@echo off
cd "C:\Program Files\Microsoft Office\root\Office16\"
start OUTLOOK.EXE
if %errorlevel%==0 echo Successfully Launched Application
@echo Starting Temp Notepad
@echo off
cd "C:\Users\jbarber\Desktop\
start temp.txt
if %errorlevel%==0 echo Successfully Launched Application
echo.
Any ideas and thanks for your help?