

Power Shell Command in Autoit $hXML_STARTMENU = & '\StartMenu.xml' If = '圆4' Then DllCall ( "kernel32.dll", "boolean", "Wow64DisableWow64FsRedirection", "boolean", 1 ) ~ Turns On 64 Bit Redirection RunWait ( /c Powershell.

Nb3: This adds the shorcuts for all "New Users" only. Nb2: In Windows 10 1607/2016 you can also add Task Bar menu items (The XML code below is for Windows 10 1607) Nb1: Shortcuts need to exist of course and should be in %AllUsersProfile% Start Menu In Windows 10 you need to use PowerShell as the verb method no longer works: DoIt EndIfĮlse, is there another way to pin a shortcut to startmenu (on windows 10)? DoIt Next EndFunc =>UnpinToTaskBand If StringInStr ( $var, "Pin to startmenu" ) Or StringInStr ( $var, "Épingler à l’écran de démarrage" ) Then MsgBox ( 0, "", 1 ) $itemVerb. name, "&", "" ) = "Détacher de la barre des tâches" Then $itemVerb. name, "&", "" ) = "Unpin from Taskbar" Or StringReplace ( $itemVerb. name & " | " ) If StringReplace ( $itemVerb. ParseName ( $strFile ) $colVerbs = $objFolderItem. Namespace ( $strFolder ) $objFolderItem = $objFolder. GetFileName ( $path ) $objFolder = $objShell. GetParentFolderName ( $path ) $strFile = $objFSO. DoIt EndIf Next EndFunc =>PinToTaskBand Func UnpinToTaskBand ( $path ) $objShell = ObjCreate ( "shell.application" ) $objFSO = ObjCreate ( "Scripting.FileSystemObject" ) $strFolder = $objFSO. name, "&", "" ) ConsoleWrite ( $var & " | " ) If $var = "Pin to startmenu" Or $var = "Épingler à l’écran de démarrage" Then MsgBox ( 0, "", 1 ) $itemVerb. Move your newly created Eclipse Mars shortcut into the same folder as Eclipse Luna, and that should do it. The file there is the shortcut, not the Eclipse executable. Verbs ~ MsgBox(0,"", $itemVerb.name) $var = StringReplace ( $itemVerb. Right-click on Eclipse Luna on your start menu (on the left there in your screenshot) and choose 'Open File Location'. PinToTaskBand ( $path ) Func PinToTaskBand ( $path ) $objShell = ObjCreate ( "shell.application" ) $objFSO = ObjCreate ( "Scripting.FileSystemObject" ) $strFolder = $objFSO. Expand collapse popup #RequireAdmin $path = & "\vlc.lnk"
