Char's approach is a valid one IMHO.
But you can also do it in native Windows. Create a shortcut whose
target is either
cmd /c c:\batch\dosomething.bat
or
cmd /k c:\batch\dosomething.bat
(The difference is that the first one's window closes when the batch
file finishes, and the second's window stays open till you close it,
either by typing exit on the command line or by clicking the X at the
upper right of the window.)
After Target in the shortcut dialog, you have a box for entering an
optional shortcut key. Don't pick an often-used key sequence, like
Ctrl+C! Pick something easy to type but not likely to be typed by
accident, Ctrl+Alt+S for instance. (Don't type Ctrl+Alt+S, press
those three keys together while the cursor is in the Shortcut Key
box.)
For the shortcut key to be effective, the shortcut must be either on
your desktop or in your start menu.
--
Stan Brown, Tehachapi, California, USA
https://BrownMath.com/
Shikata ga nai...