Command to restart programs via command prompt?
With the CMD command you can quite quickly quit programs and applications and restart on Windows 11, 10, ... and MS Server OS!
There are also tools for such tasks, such as the free Windows tool ProcessKO, but you do not always have to have a program on your PC.
1.) Here's a simple example how to restarting the File-Explorer, if File-Explorer hangs!
Create a batch file on the desktop with the name (as example) restart_explorer.bat
and enter the following commands
taskkill /IM explorer.exe /F
This is also the command to restart Windows Desktop The desktop is provided by the MS file explorer, so it is a sub-function of the explorer, if you restart it, the desktop is also restarted.
The first closes all explorer.exe processes / programs
The second one starts the ms-explore
By double clicking on the batch file both commands are executed immediately. (... see Image-1)
Quite, smart, fast and easy!
See also: Use Taskkill with the Cmd.exe correctly and sensibly with examples!
| (Image-1) Restart programs via command prompt!
2.) Is it still necessary to restart programs on Windows!
Especially when explorer hangs it's annoying to have to wait to get disk access, restarting explorer also aborts all copy operations, however, if you don't want to wait, this example is very helpful for the following all Windows operating systems and you can continue working with the file explorer immediately.
FAQ 24: Updated on: 23 November 2022 21:23
An example If you want to change the color, font and width of the command prompt and do not like the default settings on Windows 11, 10, and MS Server
The extended advanced command prompt and normal is the same Windows Console application cmd.exe on Windows 10, 11, and MS Server OS 1. The
The output memory of the CMD prompt can easily be extended for longer text outputs The screen buffer size that you set with this option is temporary and
You can quite simply and quickly list all users user accounts, user groups or export them to a file. This is available in both console app, the classic
Under Windows 11, 10, and MS Server OS you can use the command prompt to quickly create user accounts via command line In certain situations, you may
Under Windows 11, 10, . and MS Server OS, you can also quite easily list the print jobs via the command line abort / stop For this purpose, the WMIC
The solution is quite easy to move with Powershell and / or cmd.exe files, or folders, here with examples Moving files sometimes makes more sense at the
»» My question is not there in the FAQ
|Asked questions on this answer:|
- What commands do I use to close a program and a command to start it?
- How do you restart the program using windows command line, is there an easy way to restart a program using windows command line?
Keywords: windows, 11, 10, server, eleven, console, command, restart, programs, prompt, applications, free, too, Questions, Answers, Software