From 35b7c2545bedbeaffe3d7bd3dcaf2b2482a5f36e Mon Sep 17 00:00:00 2001 From: Homes32 Date: Sun, 21 Jan 2024 12:34:31 -0600 Subject: [PATCH] Specify full path to cmd.exe to allow pinning to taskbar/start menu --- Projects/PhoenixPE/Tweaks/CmdPrompt.script | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Projects/PhoenixPE/Tweaks/CmdPrompt.script b/Projects/PhoenixPE/Tweaks/CmdPrompt.script index dcb34a6..9cc3f16 100644 --- a/Projects/PhoenixPE/Tweaks/CmdPrompt.script +++ b/Projects/PhoenixPE/Tweaks/CmdPrompt.script @@ -35,10 +35,11 @@ Author=Homes32 Level=4 Selected=True Mandatory=False -Version=1.0.0.0 -Date=2020-03-01 +Version=1.0.1.0 +Date=2024-01-21 [Variables] +%ProgramExe%="#$pWinDir#$p\System32\cmd.exe" [Process] Echo,"Processing %ScriptTitle%..." @@ -46,10 +47,10 @@ Echo,"Processing %ScriptTitle%..." If,%cb_CmdPromptHere%,Equal,True,Run,%ScriptFile%,OpenCmdHere // Shortcuts -If,%cb_DesktopShc%,Equal,True,AddShortcut,Desktop,,%txt_ShortcutName%,"cmd.exe" -If,%cb_StartMenuShc%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder%,%txt_ShortcutName%,"cmd.exe" -If,%cb_PinToTaskbar%,Equal,True,PinShortcut,Taskbar,Auto,"cmd.exe" -If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"cmd.exe" +If,%cb_DesktopShc%,Equal,True,AddShortcut,Desktop,,%txt_ShortcutName%,%ProgramExe% +If,%cb_StartMenuShc%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder%,%txt_ShortcutName%,%ProgramExe% +If,%cb_PinToTaskbar%,Equal,True,PinShortcut,Taskbar,Auto,%ProgramExe% +If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,%ProgramExe% [#OpenCmdHere#] // ===============================================================================================================================