Windows 10: 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. 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. Batch File in start up

    in Windows 10 Network and Sharing
    Batch File in start up: I have created a batch file for cleaning up all temporary and unnecessary file which can be run any time. I want to add this file with the startup of windows 10, so that when ever I start the windows, the file will automatically run and clean up my PC. In windows 7, you can...
  3. Change Start Menu Shortcut

    in Windows 10 Customization
    Change Start Menu Shortcut: I recently reinstalled a program and the shortcut in the start menu points to a incorrect location, so the program won't start. How do I change the shortcut to point to the correct location?...
  4. Drag and Drop music files onto MPC

    in Windows 10 Software and Apps
    Drag and Drop music files onto MPC: Hi, So I am used to the old feature of Windows XP/Windows 7 etc where you could just drag a music/video file onto the MPC (I use Media Player Classic but this was true for all other players for the most part on those systems) but when I try to drag a file to the player, it...
  5. Trying to add a Bat file to the start menu.

    in Windows 10 Support
    Trying to add a Bat file to the start menu.: Hi there. I created the file google.bat with the following content: start "" "Google" What I want to do is add this file to the start menu. The objective is to be able to execute it with Cortana by saying "hey Cortana, open google". If I add the file into...
  6. Missing shortcut on Start menu

    in Windows 10 Support
    Missing shortcut on Start menu: Hi There, So I have a question if is ok. I put a folder on start menu : [img] (The "Downloads" Folder) If I click on it, this happens : [img] What should I do ? 57943
  7. Can't drag shortcuts from the start menu to the desktop anymore...

    in Windows 10 Support
    Can't drag shortcuts from the start menu to the desktop anymore...: Since recently, I can't drag en drop icons from my start menu to my desktop anymore... When I click the icon and drag it to the desktop, I see it on the desktop, with the overlay that a shortcut will be created there, but when I release the mouse button, the round waiting...
  8. Shortcuts to Folders/Files in Start Menu Search Box

    in Windows 10 Support
    Shortcuts to Folders/Files in Start Menu Search Box: Hi everyone, I don't know if this option even exists, but it's worth a try: When I Installed Win 10, if I wanted to quickly access one of those 6 Win 10 PC 'Folders' (Desktop, Documents, Downloads, Music, Pictures, Videos), I would just had to type in the folder in the...
  9. Can't drag and drop within the Start Menu

    in Windows 10 Support
    Can't drag and drop within the Start Menu: Hi, Windows 10 doesn't seem to allow drag and dropping within the Start Menu... As a result, I can't place anything there which doesn't include a "Pin to Start" option upon right click. I'm also unable to drag/drop onto existing Start Menu items (see attached). Is...
  10. Pin shortcuts to Start Menu

    in Windows 10 Support
    Pin shortcuts to Start Menu: What am I missing here? I can pin exe's with a right click but trying to do this with a desktop shortcut does nothing. If it is not allowed, why does the context menu have 'Pin to start' in it? Just wondering. 8914