I have a scheduled task set to run once per week. It executes a batch file that uses 7zip commands to zip a folder. It looks like:
The script works exactly as I want to, and it runs on schedule once per week in the middle of the night, according to the settings in Windows Task Scheduler. The final line that displays in the CMD window is "Everything is OK" which is the 7zip signal that everything went as expected. My problem is that the CMD window that displays the progress while the script is running does not disappear after it is done. This is annoying for me because the machine is a home theater PC, and the prompt appears on top of my home theater app. In order to get rid of it, I have to hook up my remote keyboard and mouse.Code:@echo off taskkill /im "plex media server.exe" 7za u "D:\odrive\Amazon Cloud Drive\Plex\plexbackup.7z" D:\plexdata -mx0 -up1q0r2x1y2z1w2 "C:\Program Files (x86)\Plex\Plex Media Server\plex media server.exe"
How can I make the CMD window go away when it is done?