Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I assign a hotkey to run a bat batch script?

22,630 views
Skip to first unread message

Hongyi Zhao

unread,
Mar 5, 2009, 9:37:50 PM3/5/09
to
Hi all,

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 :.

foxidrive

unread,
Mar 5, 2009, 10:44:07 PM3/5/09
to
On Fri, 06 Mar 2009 10:37:50 +0800, Hongyi Zhao <hongy...@gmail.com>
wrote:

>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.

T Lavedas

unread,
Mar 6, 2009, 8:02:34 AM3/6/09
to
On Mar 5, 10:44 pm, foxidrive <got...@woohoo.invalid> wrote:
> On Fri, 06 Mar 2009 10:37:50 +0800, Hongyi Zhao <hongyi.z...@gmail.com>

> wrote:
>
> >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/

Clay Calvert

unread,
Mar 9, 2009, 7:40:22 PM3/9/09
to
On Fri, 06 Mar 2009 10:37:50 +0800, Hongyi Zhao
<hongy...@gmail.com> wrote:

>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

vemus...@gmail.com

unread,
Apr 22, 2014, 12:12:58 AM4/22/14
to
I assigned the shortcut key in the above manner. But that shortcut key is not working. Is there any other step to activate it?

Regards

foxidrive

unread,
Apr 22, 2014, 2:44:42 AM4/22/14
to
Open the shortcut properties and check that the assigned shortcut is listed there.
If an already used hotkey sequence is used then it will not register it.


tavan...@gmail.com

unread,
Mar 30, 2017, 5:01:23 AM3/30/17
to
Vào 10:44:07 UTC+7 Thứ Sáu, ngày 06 tháng 3 năm 2009, foxidrive đã viết:
Is there different shortcut ? As i see, it have to be Crt + Alt + *something.
I prefer Crt + Space, is it possible ?

JJ

unread,
Mar 30, 2017, 7:30:36 AM3/30/17
to
On Thu, 30 Mar 2017 02:01:21 -0700 (PDT), tavan...@gmail.com wrote:
>
> Is there different shortcut ? As i see, it have to be Crt + Alt + *something.
> I prefer Crt + Space, is it possible ?

For shortcut files, if you use the CTRL key, it must be combined with either
ALT or SHIFT or both.

CTRL+SPACE is used by the system to open a MDI window anyway.

If you really need that keyboard shortcut combination, don't use the
keyboard shortcut feature in the shortcut files. Use a third party hotkey
application instead.

Mike Sanders

unread,
Mar 30, 2017, 9:49:14 AM3/30/17
to
tavan...@gmail.com wrote:

> Is there different shortcut ?
> As i see, it have to be Crt + Alt + *something.
> I prefer Crt + Space, is it possible ?

Give 'Hoekey' a look:

<http://www.bcheck.net/apps/hoe.htm>

--
later on,
Mike

https://busybox.hypermart.net

arashk...@gmail.com

unread,
Sep 29, 2017, 4:10:29 PM9/29/17
to
> Make a shortcut to the batch file and assign the hotkey in the shortcut.

Thank You !!!
0 new messages