How to connect the start menu using a batch file (Windows 10)

I need to link the executable to the new Windows 10 start menu (i.e. create a tile).

I know the PowerShell scripts that do this work, but I need instructions to add at the end of the existing batch file (cmd) that we already used to install our applications.

Regular scripts (valid for Windows 8 and 8.1) just don't work. How can i do this?

+5
source share
3 answers

This is an awkward job that Microsoft needs to fix, but it worked for me.

Rename the .bat file to .exe temporarily. Then right-click on the file name. It will give you the Pin option to run. Paste it into the Start menu. This will not work, but there is an option to open the file location. Select this and change the name to .bat. Now it works.

+8
source

Check this one . This is a JScript / bat hybrid that uses the shellapplication object and the invokeverb function (i.e. emulates a right-click and selects some specific actions). Now it is compatible with Windows 10.

Use it like this (you can also use the /.lnk shortcut for exe):

call pinnerJS.bat "%windir%\system32\cmd.exe" startmenu 
+5
source

Right now you cannot do this with free tools (perhaps Windows wants to get into the pay2tile business model).

One of the possible options at the moment is to use the Classic Shell .

0
source

All Articles