I've just started trying to use nircmd
. When I made a shortcut in a batch script, the shortcut was successfully created in the folder for my user's Start Menu > All Apps (%AppData%\Roaming\Microsoft\Windows\Start Menu\Programs
), and the Computer's Start Menu folder (%ProgramData%\Microsoft\Windows\Start Menu\Programs
) but for some reason has not shown up in all apps in the start menu.
When I place a shortcut in either location it normally shows up in the All Apps list straight away.
An excerpt from the script I am using to make the shortcut is:
set NIR=%cd%\nircmdc.exe
set StartMenuFold=%appdata%\Microsoft\Windows\Start Menu\Programs
set AllAppsFold=%programdata%\Microsoft\Windows\Start Menu\Programs
%NIR% shortcut "%PROGRAMFILES%\EsotericIDE\EsotericIDE.exe" "%StartMenuFold%" EsotericIDE
%NIR% shortcut "%PROGRAMFILES%\EsotericIDE\EsotericIDE.exe" "%AllAppsFold%" EsotericIDE
What am I doing wrong, or is it simply a problem with NirCmd
? I could do this manually, but I would like to be able to automate it.
Edit: I've tried Using GOW's version of ln to create a link, Windows recognizes it as a shortcut but still does not put it in All Apps Folder
Edit 2: It turns out my problem was solely user error on my part... I previously pinned a shortcut to the application the start menu.
%ProgramData%\Microsoft\Windows\Start Menu\Programs
without admin rights.nircmd
guru, but hopefully someone else will chime in who can help a bit more. If you don't mind me asking, do you have a compelling need to automate this process?