Windows 10: How do you pin a batch file created in Notepad to the Start Menu?

Discus and support How do you pin a batch file created in Notepad to the Start Menu? in Windows 10 Gaming to solve the problem; How do you pin a batch file created in Notepad to the Start Menu? I have the batch file...whatever.bat. What do I do now? I didn't understand other... Discussion in 'Windows 10 Gaming' started by Johnnyzenith, May 1, 2025 at 10:27 AM.

  1. How do you pin a batch file created in Notepad to the Start Menu?


    How do you pin a batch file created in Notepad to the Start Menu? I have the batch file...whatever.bat. What do I do now? I didn't understand other instructions I saw before. Thanks.

    :)
     
    Johnnyzenith, May 1, 2025 at 10:27 AM
    #1

  2. Batch file

    hello,

    i am not so good in creating batch files i need some help in creating one.

    in the following path

    C:\Windows\System32\spool\PRINTERS

    there is a .SHD and .SPL file created when prints launched

    i need a batch file to open the .SPL in notepad first then on closing the notepad opened, all the files .SHD and .SPL are permanently deleted

    any help please

    code to open the notepad is as below

    start notepad "C:\windows\system32\spool\printers\FP00002.SPL"

    the file is opened but there are unwanted characters that appear as well as below


    How do you pin a batch file created in Notepad to the Start Menu? upload_2014-6-19_10-43-2-png.png
     
    Sandeep Bhugoo, May 1, 2025 at 10:28 AM
    #2
  3. oily_17 Win User
    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
  4. Flava0ne Win User

    How do you pin a batch file created in Notepad to the Start Menu?

    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:


    How do you pin a batch file created in Notepad to the Start Menu? [​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 How do you pin a batch file created in Notepad to the 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.
     
Thema:

How do you pin a batch file created in Notepad to the Start Menu?

Loading...
  1. How do you pin a batch file created in Notepad to the Start Menu? - Similar Threads - pin batch file

  2. How do you pin a batch file created in Notepad to the Start Menu?

    in Windows 10 Software and Apps
    How do you pin a batch file created in Notepad to the Start Menu?: How do you pin a batch file created in Notepad to the Start Menu? I have the batch file...whatever.bat. What do I do now? I didn't understand other instructions I saw before. Thanks....
  3. In Windows 11, how do you pin a website to the Start Menu?

    in Windows 10 Gaming
    In Windows 11, how do you pin a website to the Start Menu?: I just reinstalled Windows 11, and I have a couple of websites I want to pin to the Start Menu. I heard that such is possible; if so, how do I do it?...
  4. In Windows 11, how do you pin a website to the Start Menu?

    in Windows 10 Software and Apps
    In Windows 11, how do you pin a website to the Start Menu?: I just reinstalled Windows 11, and I have a couple of websites I want to pin to the Start Menu. I heard that such is possible; if so, how do I do it?...
  5. How to pin notepad file to notepad on taskbar?

    in Windows 10 Customization
    How to pin notepad file to notepad on taskbar?: How to pin notepad file to notepad on taskbar? When I pin notepad app to task bad I was able to add files to it by right mouse button but not after last windows reinstallation. I still can do it with any other app....
  6. How do you open the Start Menu to All Apps not Pinned?

    in Windows 10 Gaming
    How do you open the Start Menu to All Apps not Pinned?: How do you remove the initial "Pinned" Start Menu? How do you open the Start Menu to All Apps not Pinned automatically? Where is that setting?Windows 11 Prov10.0.22000 Build 22000...
  7. How do you open the Start Menu to All Apps not Pinned?

    in Windows 10 Software and Apps
    How do you open the Start Menu to All Apps not Pinned?: How do you remove the initial "Pinned" Start Menu? How do you open the Start Menu to All Apps not Pinned automatically? Where is that setting?Windows 11 Prov10.0.22000 Build 22000...
  8. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  9. How do you alphabetize the pinned tiles in the Start Menu?

    in Windows 10 Support
    How do you alphabetize the pinned tiles in the Start Menu?: Each time I pin a new program, it shows up at the bottom of the list. Is there a way to alphabetize this list automatically, instead of doing it manually? Thanks 49414
  10. How do you pin the control panel to the start menu?

    in Windows 10 Support
    How do you pin the control panel to the start menu?: I find the control panel is a bit awkward to find and usually just luck that I find it on advanced setting for something to other. Is there any way to have the full control panel (not that settings nonsense) on the start menu, pin or otherwise? I can pin it to the task bar...