rojarsmith / TrayToolbar

Provide the replacement of add new toolbar function that was cancelled in windows 11
81 stars 1 forks source link

Running bat files doesn't show the console window #6

Closed filippobottega closed 2 years ago

filippobottega commented 2 years ago

Hello, I'm using Windows 11, if I try to run a bat file or a try to run a cmd prompt, the console window doesn't appear even if the process is running. I'm using Process Explorer to check what appens:

image

Regards, Filippo.

filippobottega commented 2 years ago

Solution: TrayToolbar run this command:

"cmd.exe" /c "MyPath\My link.lnk"

Probably the cmd.exe is hidden and has not any visible window. To run a command from TrayToolbar you have to write a bat file, for example CommandPrompt.bat, containing this command:

start "Command Prompt" "%windir%\system32\cmd.exe"

Using start it is possible to display a new window even if the first cmd.exe process is hidden.

Regards, Filippo.

rojarsmith commented 2 years ago

I will pay attention.