Windows 10: Shortcut or batch file for particular Services.msc actions?

Discus and support Shortcut or batch file for particular Services.msc actions? in Windows 10 Gaming to solve the problem; I'm a long-time Windows user who likes assigning keyboard hotkeys to shortcuts for lots of things. However, I find that the hotkeys often don't work.... Discussion in 'Windows 10 Gaming' started by TheKnightMike, Jul 10, 2022.

  1. Shortcut or batch file for particular Services.msc actions?


    I'm a long-time Windows user who likes assigning keyboard hotkeys to shortcuts for lots of things. However, I find that the hotkeys often don't work. It's all or none; they all work, or none of them.Some googling and experimentation show that the issue is with the Human Interface Device Service HIDS in Services.msc. See e.g. #4 on this MakeUseOf page. If I give it a Refresh and then a Restart, all my shortcuts work fine. For a while, anyway.I've put a shortcut to Services.msc. It's still a bit of hassle to launch it, though, find HIDS, Refresh it, and Restart it. It's practically not worth

    :)
     
    TheKnightMike, Jul 10, 2022
    #1
  2. Flava0ne Win User

    Creating Shortcuts with Batch File

    Tried both of the VB Scripts that you provided and adding the 9 switch to the batch file but neither was able to create a shortcut to my desktop.
     
    Flava0ne, Jul 10, 2022
    #2
  3. Flava0ne Win User
    Creating Shortcuts with Batch File

    I've created a Batch file which calls on the following VB Script to be able to create a shortcut to my desktop:

    VB Script (named createLink.vbs):
    Code: set objWSHShell = CreateObject("WScript.Shell") set objFso = CreateObject("Scripting.FileSystemObject") ' command line arguments ' TODO: error checking sShortcut = objWSHShell.ExpandEnvironmentStrings(WScript.Arguments.Item(0)) sTargetPath = objWSHShell.ExpandEnvironmentStrings(WScript.Arguments.Item(1)) sWorkingDirectory = objFso.GetAbsolutePathName(sShortcut) set objSC = objWSHShell.CreateShortcut(sShortcut) objSC.TargetPath = sTargetPath objSC.WorkingDirectory = sWorkingDirectory objSC.Save[/quote] Batch File Example (for Windows Notepad):
    Code: @Echo off cscript createLink.vbs "C:\Users\Administrator\Desktop\Notepad.lnk" "C:\Windows\System32\notepad.exe"[/quote] But after creating the shortcut using this method, I'm not able to assign a custom icon for the shortcut. I get the following error message when trying to do so:


    Shortcut or batch file for particular Services.msc actions? [​IMG]


    Any help and ideas on what I need to put into the VB Script and/or Batch File to be able to do this would be greatly appreciated! *Big Grin Shortcut or batch file for particular Services.msc actions? :D

    Also, I know that I can simply do this by going to Start Menu\All Programs\Accessories\ right-clicking on Notepad and selecting Send to\Desktop (create shortcut). Easy enough for creating a single shortcut. But I need to create several multiple shortcuts and using this Batch/VBS method would really save me a lot of time in doing so.
     
    Flava0ne, Jul 10, 2022
    #3
  4. Shortcut or batch file for particular Services.msc actions?

    Creating Shortcuts with Batch File

    Hmm, I just tried it and it worked fine. Maybe try running the batch as administrator? Also, right click on the desktop after the shortcut is created and click Refresh.

    If the file in the third parameter doesn't exist, it assumes the icon is in the application.
     
    FordGT90Concept, Jul 10, 2022
    #4
Thema:

Shortcut or batch file for particular Services.msc actions?

Loading...
  1. Shortcut or batch file for particular Services.msc actions? - Similar Threads - Shortcut batch file

  2. How do I revert the actions of this Batch file?

    in Windows 10 Software and Apps
    How do I revert the actions of this Batch file?: I was scouring the internet and came across a batch file that was supposed to restore the windows 8 UAC screen as I prefer it over the newer one. The batch file was meant to be ran using Windows 10 but it didn't specify that. Now when I try to open Registry Editor or run a...
  3. How do I revert the actions of this Batch file?

    in Windows 10 Gaming
    How do I revert the actions of this Batch file?: I was scouring the internet and came across a batch file that was supposed to restore the windows 8 UAC screen as I prefer it over the newer one. The batch file was meant to be ran using Windows 10 but it didn't specify that. Now when I try to open Registry Editor or run a...
  4. Adding batch file shortcut to Startup menu?

    in Windows 10 Gaming
    Adding batch file shortcut to Startup menu?: For diagnosing purposes I need to add a batch file to Windows Startup menu and it must be run with the administrator privileges. For that I created a shortcut to it.There is not any problem when I execute it by hand, however Windows Startup ignores that entry.Please...
  5. Adding batch file shortcut to Startup menu?

    in Windows 10 Software and Apps
    Adding batch file shortcut to Startup menu?: For diagnosing purposes I need to add a batch file to Windows Startup menu and it must be run with the administrator privileges. For that I created a shortcut to it.There is not any problem when I execute it by hand, however Windows Startup ignores that entry.Please...
  6. Adding batch file shortcut to Startup menu?

    in Windows 10 Customization
    Adding batch file shortcut to Startup menu?: For diagnosing purposes I need to add a batch file to Windows Startup menu and it must be run with the administrator privileges. For that I created a shortcut to it.There is not any problem when I execute it by hand, however Windows Startup ignores that entry.Please...
  7. Shortcut or batch file for particular Services.msc actions?

    in Windows 10 Software and Apps
    Shortcut or batch file for particular Services.msc actions?: I'm a long-time Windows user who likes assigning keyboard hotkeys to shortcuts for lots of things. However, I find that the hotkeys often don't work. It's all or none; they all work, or none of them.Some googling and experimentation show that the issue is with the Human...
  8. Shortcut or batch file for particular Services.msc actions?

    in Windows 10 Customization
    Shortcut or batch file for particular Services.msc actions?: I'm a long-time Windows user who likes assigning keyboard hotkeys to shortcuts for lots of things. However, I find that the hotkeys often don't work. It's all or none; they all work, or none of them.Some googling and experimentation show that the issue is with the Human...
  9. How to batch-resolve file shortcuts turn shortcuts into the files they link to ?

    in Windows 10 Network and Sharing
    How to batch-resolve file shortcuts turn shortcuts into the files they link to ?: Hi! I'm considering to use file shortcuts lnk files for my documents in order to allow a single file to occur in multiple folders - as a real file in one folder and as file shortcuts in other folders. However, I will have to export folders with many of these file...
  10. can a command line action as batch file

    in Windows 10 Support
    can a command line action as batch file: I have a run a action on one of my programs to disable it (when required) quite regularly from an elevated cmd prompt... Can it be made into a bath file (.bat) and executed as and when required? 174187