Try START without /WAIT:
START "ShareX Editor" "C:\Program Files\ShareX\ShareX.exe" -ImageEditor %1
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I can't figure out how to run the following batch file, named "ShareX_imageditor.cmd",
"C:\Program Files\ShareX\ShareX.exe" -ImageEditor %1
in a way that will allow the batch console window to close immediately, but leave open the "ShareX.exe -ImageEditor %1" window generated by the batch file, so that the user can use the ShareX ImageEditor that was opened by the batch file.
I made the following 3 (obviously in hindsight) wrong attempts (one at at a time):
Rem Argument = "E:\Apps\ShareX\Custom_Screenshots\2021-08\EditPadPro8_BRLd6zo0Tp.png"
echo %1
1. START "ShareX Editor" /WAIT "C:\Program Files\ShareX\ShareX.exe" -ImageEditor %1
2. cmd.exe /C "C:\Program Files\ShareX\ShareX.exe" -ImageEditor %1
3. nircmd exec hide "C:\Program Files\ShareX\ShareX.exe" -ImageEditor %1
Any suggestions about where I could find the answer would be much appreciated.
If this is the wrong forum:
Please let me know if I used the right tags for this question; or alternative, what the right tags would have been.
Thank you very much for any help you can give me.
Marc
Try START without /WAIT:
START "ShareX Editor" "C:\Program Files\ShareX\ShareX.exe" -ImageEditor %1