I want to restart the "explorer.exe" e.g. the TaskBar process with Delphi.
In a batch file I would do (works!):
taskkill.exe /IM explorer.exe /F
start explorer.exe
In Delphi I am trying to use ShellExecute for both commands. Killing works, however, I do not manage to get the explorer back.
How should I call ShellExecute to restart the explorer including taskbar (not just one single file browser window)?
If explorer itself is not running, ShellExecute needs the full path, i.e. C:\Windows\explorer.exe in order to work.