can this be written as a batch file

oldclock

Commendable
Feb 13, 2017
1
0
1,510
Launch Task Manager using the CTRL+SHIFT+ESC key sequence, or by running taskmgr.exe.
3. In the Process tab, right-click on the Explorer.exe process and select End Process.
4. Click the End process button when asked for confirmation.
5. From the File menu of Task Manager, select New Task (Run…)
6. Type CMD.EXE, and click OK
7. In the Command Prompt window, type the commands one by one and press ENTER after each command:
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
EXIT
8. In Task Manager, click File, select New Task (Run…)
9. Type EXPLORER.EXE, and click OK.
 
Solution
simple

Rightclick on desktop, select new text file
edit the following lines inside it

@echo
taskkill /f /im explorer.exe
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
start explorer.exe

save file, then rename .txt to .bat
right click to set it to run as Administrator always
double click to run it all




sources :
http://tweaks.com/windows/39559/kill-processes-from-command-prompt
https://www.tenforums.com/tutorials/5970-explorer-exe-process-restart-windows-10-a.html
simple

Rightclick on desktop, select new text file
edit the following lines inside it

@echo
taskkill /f /im explorer.exe
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
start explorer.exe

save file, then rename .txt to .bat
right click to set it to run as Administrator always
double click to run it all




sources :
http://tweaks.com/windows/39559/kill-processes-from-command-prompt
https://www.tenforums.com/tutorials/5970-explorer-exe-process-restart-windows-10-a.html
 
Solution