8/1/2023 0 Comments Shotbot shortcutTo assign a keyboard shortcut do the following:īegin keyboard shortcuts with CTRL or a function key. In the Commands box, select the name of the command or other item that you want to assign a keyboard shortcut to or remove a keyboard shortcut from.Īny keyboard shortcuts that are currently assigned to that command or other item appear in the Current keys box, or below the box with the label Currently assigned to. In the Categories box, select the category that contains the command or other item that you want to assign a keyboard shortcut to or remove a keyboard shortcut from. In the Save changes in box, select the current document name or template that you want to save the keyboard shortcut changes in. Use a mouse to assign or remove a keyboard shortcutĪt the bottom of the Customize the Ribbon and keyboard shortcuts pane, select Customize. You can assign or remove keyboard shortcuts by using a mouse or just the keyboard. ::********************************************************************************************īased on Rohit's answer, I created this batch script which accepts the input parameters: AppPath, AppName, AppExtension and ShortcutDestinationPath.Įcho sLinkFile = "%ShortcutDestinationPath%\%AppName%.lnk" > CreateShortcut.vbsĮcho oLink.TargetPath = "%AppPath%\%AppName%.%AppExtension%" > CreateShortcut.vbsĮcho oLink.WorkingDirectory = "%AppPath%" > CreateShortcut.vbsĮcho oLink.Description = "%AppName%" > CreateShortcut.vbsĮcho oLink.IconLocation = "%AppPath%\%AppName%.bmp" > CreateShortcut.vbsĮxample usage to create a shortcut to C:\Apps\MyApp.exe in the folder C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp: MakeShortcut.You can customize keyboard shortcuts (or shortcut keys) by assigning them to a command, macro, font, style, or frequently used symbol. I present a small hybrid script to create a desktop shortcut.Īnd you can of course modifie it to your purpose. Note that MyApp48.bmp is a 48x48 pixel image.Įcho Set oWS = WScript.CreateObject("WScript.Shell") > CreateShortcut.vbsĮcho sLinkFile = "%userprofile%\Desktop\MyApp.lnk" > CreateShortcut.vbsĮcho Set oLink = oWS.CreateShortcut(sLinkFile) > CreateShortcut.vbsĮcho oLink.TargetPath = "C:\MyApp\MyApp.bat" > CreateShortcut.vbsĮcho oLink.WorkingDirectory = "C:\MyApp" > CreateShortcut.vbsĮcho oLink.Description = "My Application" > CreateShortcut.vbsĮcho oLink.IconLocation = "C:\MyApp\MyApp48.bmp" > CreateShortcut.vbs I wanted the shortcut to appear on the desktop.īut I also needed to set the icon, the description, and the working directory. I didn't try mklink, since I didn't want to mess with permissions. The JScript solution gave me syntax errors. The PowerShell solution ran, but no shortcut appeared. Rohit Sahu's answer worked best for me in Windows 10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |