Trying to drag a shortcut to a batch file onto my start menu

Discus and support Trying to drag a shortcut to a batch file onto my start menu in Windows 10 Support to solve the problem; I wanted to drag a shortcut to a batch file onto the tiled area of my start menu but I'm just getting a no-go/banned symbol. How do I overcome this?... Discussion in 'Windows 10 Support' started by THX1138, Aug 5, 2018.

  1. THX1138 Win User

    Trying to drag a shortcut to a batch file onto my start menu


    I wanted to drag a shortcut to a batch file onto the tiled area of my start menu but I'm just getting a no-go/banned symbol. How do I overcome this? Thanks.


    Trying to drag a shortcut to a batch file onto my start menu [​IMG]


    :)
     
    THX1138, Aug 5, 2018
    #1
  2. 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:


    Trying to drag a shortcut to a batch file onto my start menu Error503.jpg


    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 Trying to drag a shortcut to a batch file onto my start menu :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, Aug 5, 2018
    #2
  3. FordGT90Concept Win User
    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, Aug 5, 2018
    #3
  4. Flava0ne Win User

    Trying to drag a shortcut to a batch file onto my start menu

    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, Aug 5, 2018
    #4
Thema:

Trying to drag a shortcut to a batch file onto my start menu

Loading...
  1. Trying to drag a shortcut to a batch file onto my start menu - Similar Threads - Trying drag shortcut

  2. Word 2007 Can No-Longer open .DOCM files after upgrade to Windows 10

    in Windows 10 Support
    Word 2007 Can No-Longer open .DOCM files after upgrade to Windows 10: Today, I upgraded a Windows 8 system to Windows 10 Home. All seemed to work well. NOW however, Word 2007 cannot open a .DOCM file that has an embedded Excel spreadsheet object (.XLS). I've never seen such a thing before and I'm lost. There's a bunch of chatter about Security...
  3. i want to add a new user for my kids in the Pc

    in Windows 10 Software and Apps
    i want to add a new user for my kids in the Pc: hello guys i want to create a new user for my kids https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-win_people/i-want-to-add-a-new-user-for-my-kids-in-the-pc/49651e3b-78c9-4351-8a2e-2abb8ec0e92a
  4. Resetting start page menu layout to default in Win 10.

    in Windows 10 Customization
    Resetting start page menu layout to default in Win 10.: Hi.....somehow I lost my original start page menu layout. I can access everything as before, but the layout is different and I have to click on more buttons etc. Is there a way I can get the original layout without doing a computer restore and having to 'customize' things...
  5. No thumbnails in start menu on start-up

    in Windows 10 Customization
    No thumbnails in start menu on start-up: Since the April update (the latest one didn’t brick my PC, for a change), most of the thumbnails in my Start menu have vanished when the computer starts up. I know how to reset thumbnails, and that is the solution, but what is the reason for Windows not loading thumbnails...
  6. help this is what my screen looks like? from my point view the screen in tinted green gray.

    in Windows 10 Customization
    help this is what my screen looks like? from my point view the screen in tinted green gray.: here is the dilemma, happen after a lighting strike it was worse before but this is what is subsided to [IMG] https://answers.microsoft.com/en-us/windows/forum/windows_10-start-win_desk/help-this-is-what-my-screen-looks-like-from-my/f168d730-0e22-40d0-9986-3d96f7e8950a
  7. I cant play my steam games anymore!!!!!

    in Windows 10 BSOD Crashes and Debugging
    I cant play my steam games anymore!!!!!: I am sick of trying to fix this stupid error. I was able to play games on this laptop before but now when i go on steam and try to play them it gives me this error. [ATTACH] I have tried to "Instal Dierct X again. Checked DxDiag, and checked if my drivers up to date"....
  8. Getting a M2IzYzlm.exe in task manager and a folder with random name in Program Files

    in AntiVirus, Firewalls and System Security
    Getting a M2IzYzlm.exe in task manager and a folder with random name in Program Files: Getting a M2IzYzlm.exe in task manager, It pops up after a certain interval of time and switches off my wifi, when I right clicked and tried to locate it, it shows a folder with a weird name inside the Program Files. Scanned the laptop with Rogue Killer, Defender and MBAM,...
  9. Illustrator and Photoshop not starting due to 0xc000007b error

    in Windows 10 BSOD Crashes and Debugging
    Illustrator and Photoshop not starting due to 0xc000007b error: I recently installed Adobe Photoshop and Illustrator on my Windows 10. Both programs are installed fine but won't open giving the following error. "The application was unable to start correctly (0xc000007b). Click OK to close the application" I looked over the internet for...
  10. NO SOUND ON MY COMPUTER

    in Windows 10 BSOD Crashes and Debugging
    NO SOUND ON MY COMPUTER: NO SOUND ON MY COMPUTER https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/no-sound-on-my-computer/d7bcd5f1-063d-47c6-849c-8cf6b8b67974