This is in response to my earlier post..
After some digging around I found a backdoor way.
Maybe this will help someone else ...
:ToggleNumlock.cmd
:==================+
@echo off
setlocal
set _prompt=%1
:: Create the VBS script with an echo statement and chain with colon:
echo set WshShell = CreateObject("WScript.Shell") : WshShell.SendKeys "{numlock}">%Temp%\Numlock.vbs
:: Runs the vbScript:
FOR /f "delims=/" %%G IN ('cscript //nologo %Temp%\Numlock.vbs') DO set _string=%%G
:: Delete vbScript:
del %Temp%\Numlock.vbs
Batch Script to Toggle Numlock?
Moderator: DosItHelp
-
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
Re: Batch Script to Toggle Numlock?
You can then save this .vbs file so you don't have to create it whenever you run numlock.cmd.
By the way, I think you should have posted this on your original thread.
By the way, I think you should have posted this on your original thread.
-
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
Re: Batch Script to Toggle Numlock?
BTW Fawers, I did consider posting on orginal post but after so many overwhelming responses I decided to repost.
So I quess you never read my orginal post or just didn't know the answer...
So I quess you never read my orginal post or just didn't know the answer...
Re: Batch Script to Toggle Numlock?
You're right. After so many replies, it sure is better to create a whole new thread so it can gather more and more replies.
I am so sorry for my naiveness.
I am so sorry for my naiveness.
Re: Batch Script to Toggle Numlock?
Dos_Probie wrote:BTW Fawers, I did consider posting on orginal post but after so many overwhelming responses I decided to repost.
Surely you can't be serious.