I've written a DOS bat batch script and want to run it by a customized
hotkey laterly, it this possible?
--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
>I've written a DOS bat batch script and want to run it by a customized
>hotkey laterly, it this possible?
Make a shortcut to the batch file and assign the hotkey in the shortcut.
That will work from the desktop, opening a new command console. I
wonder if the request is for a hotkey that executes the batch in the
current console window? If this is the case, it requires a third
party application, I think, as in the 'terminate and stay resident'
applications of the old days of 'real' MS-DOS. In that case, unless
the procedure is called very frequently, I'm not certain a batch
procedure is worth creating a hotkey to execute. Just giving it a
very short name (].bat, maybe) and putting it in a folder named on the
PATH (like %systemroot%\system32\) should be nearly as good.
Tom Lavedas
***********
http://there.is.no.more/tglbatch/
>I've written a DOS bat batch script and want to run it by a customized
>hotkey laterly, it this possible?
I assume you are referring to running in a windows environment, if so,
create a shortcut to the batch file. For example, right-click on the
Desktop, select New, the Shortcut and then browse to your batch. Once
the shortcut gets created, right-click on it and select properties, in
there is a setting for assigning a 'shortcut key' sequence, such as
Ctrl + Alt + b.
If you are referring to from within a CMD prompt, then create a batch
with a single character prefix. For example, 'b.bat'.
Thanks