• One keystroke runs a batch file

    From Falafel Balls@21:1/5 to All on Tue Jul 25 22:16:59 2023
    XPost: alt.msdos.batch, alt.comp.microsoft.windows

    I have a batch file that I run a log while I'm not looking at the screen.
    Is there a way to run a batch file from a single keyboard keystroke?

    Say the batch file is in c:\batch\dosomething.bat

    How can I set up a keyboard keystroke so that I don't have to look at the monitor to run that command from the keyboard (while I'm looking down)?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Char Jackson@21:1/5 to YoussefGamalNOSPAM@etisalat.eg on Tue Jul 25 15:32:17 2023
    XPost: alt.msdos.batch, alt.comp.microsoft.windows

    On Tue, 25 Jul 2023 22:16:59 +0300, Falafel Balls <YoussefGamalNOSPAM@etisalat.eg> wrote:

    I have a batch file that I run a log while I'm not looking at the screen.
    Is there a way to run a batch file from a single keyboard keystroke?

    Say the batch file is in c:\batch\dosomething.bat

    How can I set up a keyboard keystroke so that I don't have to look at the >monitor to run that command from the keyboard (while I'm looking down)?

    There are a few folks hanging around who use software like AutoHotkey or AutoIt,
    or I think that's what they're called. Something like that might do the job.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Char Jackson on Tue Jul 25 14:28:57 2023
    XPost: alt.msdos.batch

    On Tue, 25 Jul 2023 15:32:17 -0500, Char Jackson wrote:

    On Tue, 25 Jul 2023 22:16:59 +0300, Falafel Balls <YoussefGamalNOSPAM@etisalat.eg> wrote:

    I have a batch file that I run a log while I'm not looking at the screen. >Is there a way to run a batch file from a single keyboard keystroke?

    Say the batch file is in c:\batch\dosomething.bat

    How can I set up a keyboard keystroke so that I don't have to look at the >monitor to run that command from the keyboard (while I'm looking down)?

    There are a few folks hanging around who use software like AutoHotkey or AutoIt,
    or I think that's what they're called. Something like that might do the job.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to Jackson on Tue Jul 25 23:01:02 2023
    XPost: alt.msdos.batch, alt.comp.microsoft.windows

    In alt.comp.os.windows-10, on Tue, 25 Jul 2023 15:32:17 -0500, Char
    Jackson <none@none.invalid> wrote:

    On Tue, 25 Jul 2023 22:16:59 +0300, Falafel Balls ><YoussefGamalNOSPAM@etisalat.eg> wrote:

    I have a batch file that I run a log while I'm not looking at the screen. >>Is there a way to run a batch file from a single keyboard keystroke?

    Say the batch file is in c:\batch\dosomething.bat

    How can I set up a keyboard keystroke so that I don't have to look at the >>monitor to run that command from the keyboard (while I'm looking down)?

    There are a few folks hanging around who use software like AutoHotkey or AutoIt,
    or I think that's what they're called. Something like that might do the job.

    I was going to suggest AutoHotKey or another one that is easier to use
    but which costs a little money. The first requires writing a script
    and the second just filling out forms. There are others.

    I only use mine to raise and lower the volume, and to mute the sound.
    I think I tried to disable the Insert key and it should have been easy
    but it didn't work. I think it will work for you how ever

    Google key remapper . Probably no DOS needed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to Brown on Tue Jul 25 23:02:41 2023
    XPost: alt.msdos.batch

    In alt.comp.os.windows-10, on Tue, 25 Jul 2023 14:28:57 -0700, Stan
    Brown <the_stan_brown@fastmail.fm> wrote:

    On Tue, 25 Jul 2023 15:32:17 -0500, Char Jackson wrote:

    On Tue, 25 Jul 2023 22:16:59 +0300, Falafel Balls
    <YoussefGamalNOSPAM@etisalat.eg> wrote:

    I have a batch file that I run a log while I'm not looking at the screen. >> >Is there a way to run a batch file from a single keyboard keystroke?

    Say the batch file is in c:\batch\dosomething.bat

    How can I set up a keyboard keystroke so that I don't have to look at the >> >monitor to run that command from the keyboard (while I'm looking down)?

    There are a few folks hanging around who use software like AutoHotkey or AutoIt,
    or I think that's what they're called. Something like that might do the job.

    Char's approach is a valid one IMHO.

    But you can also do it in native Windows. Create a shortcut whose

    I believe it's now called Indigenous Windows.



    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to micky on Wed Jul 26 12:34:20 2023
    XPost: alt.msdos.batch, alt.comp.microsoft.windows

    On 7/25/2023 11:01 PM, micky wrote:
    In alt.comp.os.windows-10, on Tue, 25 Jul 2023 15:32:17 -0500, Char
    Jackson <none@none.invalid> wrote:

    On Tue, 25 Jul 2023 22:16:59 +0300, Falafel Balls
    <YoussefGamalNOSPAM@etisalat.eg> wrote:

    I have a batch file that I run a log while I'm not looking at the screen. >>> Is there a way to run a batch file from a single keyboard keystroke?

    Say the batch file is in c:\batch\dosomething.bat

    How can I set up a keyboard keystroke so that I don't have to look at the >>> monitor to run that command from the keyboard (while I'm looking down)?

    There are a few folks hanging around who use software like AutoHotkey or AutoIt,
    or I think that's what they're called. Something like that might do the job.

    I was going to suggest AutoHotKey or another one that is easier to use
    but which costs a little money. The first requires writing a script
    and the second just filling out forms. There are others.

    I only use mine to raise and lower the volume, and to mute the sound.
    I think I tried to disable the Insert key and it should have been easy
    but it didn't work. I think it will work for you how ever

    Google key remapper . Probably no DOS needed.
    look at free https://www.nirsoft.net/utils/volumouse.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)