Solved Pin CMD Script to Start Menu and/or Taskbar


SoFine409

Member
VIP
Local time
3:45 PM
Posts
22
OS
Windows 10 Pro
I'd like to find a way to pin Kyhs's Image Health CMD script (Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Help Forums, see post #2) to the Start Manu and/or the Taskbar. Any help would be appreciated.

Update: I found a solution to pinning to the Start Menu: change the extension from ".cmd" to ".exe" then pin it to the start menu. After it's pinned then go back and change the extension back to ".cmd". But the issue of pinning to the taskbar is still unsolved.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell 8940
    CPU
    10th Gen Intel(R) Core(TM) i7-10700, 2.90GHz
    Motherboard
    Dell 0KV3RP (U3E1)
    Memory
    32GB, 2x16GB, DDR4, 2933Mhz
    Graphics Card(s)
    NVIDIA(R) GeForce(R) RTX 2060 SUPER(TM) 8GB GDDR6
    Sound Card
    Onboard, Realtek Codec, NVIDIA Hi Def Audio, Intel Display Audio
    Monitor(s) Displays
    Dell UltraSharp U3415W
    Screen Resolution
    3440x1440
    Hard Drives
    2TB M.2 PCIe NVMe SSD; 2TB Samsung SSD 860 EVO; 2TB Samsung SSD 860 EVO 2
    PSU
    500 W Dell
    Case
    Night Sky Bezel Chassis
    Cooling
    Dell
    Keyboard
    Logi Wireless
    Mouse
    Logi Wireless
    Internet Speed
    111 Mbps Download, 132 Mbps Upload
    Browser
    Edge, Chrome
    Antivirus
    Windows Defender, MalwareBytes
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Alienware Aurora R11
    CPU
    1oth Gen Intel Core i9 10900K, 3.7 - 5.3GHz
    Motherboard
    Dell
    Memory
    32GB Dual Channel HyperX(FM) FURY ODR4 XMP at 3200MHz
    Graphics card(s)
    NVIDIA GeForce RTX 2080 Ti 11GB GDDR
    Sound Card
    Motherboard
    Monitor(s) Displays
    Alienware AW2720 HF
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB M.2 PCle SSD (Boot); 6TB 7200RPM SATA
    PSU
    1000W Dell
    Case
    Dark Side of the Moon chassis
    Cooling
    High-Performance CPU Liquid Cooling
    Mouse
    Logitech G502
    Keyboard
    Logitech Pro Gamer
    Internet Speed
    111 Mbps Download, 132 Mbps Upload
    Browser
    Edge, Chrome
    Antivirus
    Windows Defender, MalwareBytes

iko22

Well-known member
Member
VIP
Local time
8:45 PM
Posts
642
Location
South West England
OS
Windows 10
You can pin a CMD batch file to Start Menu or Taskbar by the following procedure:

Right-mouse click on CMD script, and select create shortcut. This creates a shortcut in the same folder.
Go to the newly created shortcut and Right-mouse click on the file, and select Properties from the list.
In the Properties window, under Target, add explorer (with one space afterwards) to the target field.
Once you've done that, the shortcut icon changes from a cmd icon to an explorer icon.
Now you can pin this shortcut to either the Start Menu or the Taskbar, as required.
 

My Computer

System One

  • OS
    Windows 10
    CPU
    TBA
    Motherboard
    TBA

SoFine409

Member
VIP
Thread Starter
Local time
3:45 PM
Posts
22
OS
Windows 10 Pro
You can pin a CMD batch file to Start Menu or Taskbar by the following procedure:

Right-mouse click on CMD script, and select create shortcut. This creates a shortcut in the same folder.
Go to the newly created shortcut and Right-mouse click on the file, and select Properties from the list.
In the Properties window, under Target, add explorer (with one space afterwards) to the target field.
Once you've done that, the shortcut icon changes from a cmd icon to an explorer icon.
Now you can pin this shortcut to either the Start Menu or the Taskbar, as required.
@iko22 Unfortunately using explorer causes the admin privileges dialogue box to pop up each time which defeats the purpose of putting it on the taskbar.
 

My Computers

System One System Two

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell 8940
    CPU
    10th Gen Intel(R) Core(TM) i7-10700, 2.90GHz
    Motherboard
    Dell 0KV3RP (U3E1)
    Memory
    32GB, 2x16GB, DDR4, 2933Mhz
    Graphics Card(s)
    NVIDIA(R) GeForce(R) RTX 2060 SUPER(TM) 8GB GDDR6
    Sound Card
    Onboard, Realtek Codec, NVIDIA Hi Def Audio, Intel Display Audio
    Monitor(s) Displays
    Dell UltraSharp U3415W
    Screen Resolution
    3440x1440
    Hard Drives
    2TB M.2 PCIe NVMe SSD; 2TB Samsung SSD 860 EVO; 2TB Samsung SSD 860 EVO 2
    PSU
    500 W Dell
    Case
    Night Sky Bezel Chassis
    Cooling
    Dell
    Keyboard
    Logi Wireless
    Mouse
    Logi Wireless
    Internet Speed
    111 Mbps Download, 132 Mbps Upload
    Browser
    Edge, Chrome
    Antivirus
    Windows Defender, MalwareBytes
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Alienware Aurora R11
    CPU
    1oth Gen Intel Core i9 10900K, 3.7 - 5.3GHz
    Motherboard
    Dell
    Memory
    32GB Dual Channel HyperX(FM) FURY ODR4 XMP at 3200MHz
    Graphics card(s)
    NVIDIA GeForce RTX 2080 Ti 11GB GDDR
    Sound Card
    Motherboard
    Monitor(s) Displays
    Alienware AW2720 HF
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB M.2 PCle SSD (Boot); 6TB 7200RPM SATA
    PSU
    1000W Dell
    Case
    Dark Side of the Moon chassis
    Cooling
    High-Performance CPU Liquid Cooling
    Mouse
    Logitech G502
    Keyboard
    Logitech Pro Gamer
    Internet Speed
    111 Mbps Download, 132 Mbps Upload
    Browser
    Edge, Chrome
    Antivirus
    Windows Defender, MalwareBytes

iko22

Well-known member
Member
VIP
Local time
8:45 PM
Posts
642
Location
South West England
OS
Windows 10
In the Target field of the shortcut, try the following:
runas /user:ComputerName\Administrator /savecred explorer “MyCMD.bat“
where "MyCMD.bat" is the name of your CMD script.
(Not sure /savecred works on Windows 11, give it a go anyway.)
 

My Computer

System One

  • OS
    Windows 10
    CPU
    TBA
    Motherboard
    TBA

SoFine409

Member
VIP
Thread Starter
Local time
3:45 PM
Posts
22
OS
Windows 10 Pro
In the Target field of the shortcut, try the following:
runas /user:ComputerName\Administrator /savecred explorer “MyCMD.bat“
where "MyCMD.bat" is the name of your CMD script.
(Not sure /savecred works on Windows 11, give it a go anyway.)
Thanks, I'll give it a try and get back to you in a few minutes.
Update: It didn't work. Nothing appeared to happen.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell 8940
    CPU
    10th Gen Intel(R) Core(TM) i7-10700, 2.90GHz
    Motherboard
    Dell 0KV3RP (U3E1)
    Memory
    32GB, 2x16GB, DDR4, 2933Mhz
    Graphics Card(s)
    NVIDIA(R) GeForce(R) RTX 2060 SUPER(TM) 8GB GDDR6
    Sound Card
    Onboard, Realtek Codec, NVIDIA Hi Def Audio, Intel Display Audio
    Monitor(s) Displays
    Dell UltraSharp U3415W
    Screen Resolution
    3440x1440
    Hard Drives
    2TB M.2 PCIe NVMe SSD; 2TB Samsung SSD 860 EVO; 2TB Samsung SSD 860 EVO 2
    PSU
    500 W Dell
    Case
    Night Sky Bezel Chassis
    Cooling
    Dell
    Keyboard
    Logi Wireless
    Mouse
    Logi Wireless
    Internet Speed
    111 Mbps Download, 132 Mbps Upload
    Browser
    Edge, Chrome
    Antivirus
    Windows Defender, MalwareBytes
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Alienware Aurora R11
    CPU
    1oth Gen Intel Core i9 10900K, 3.7 - 5.3GHz
    Motherboard
    Dell
    Memory
    32GB Dual Channel HyperX(FM) FURY ODR4 XMP at 3200MHz
    Graphics card(s)
    NVIDIA GeForce RTX 2080 Ti 11GB GDDR
    Sound Card
    Motherboard
    Monitor(s) Displays
    Alienware AW2720 HF
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB M.2 PCle SSD (Boot); 6TB 7200RPM SATA
    PSU
    1000W Dell
    Case
    Dark Side of the Moon chassis
    Cooling
    High-Performance CPU Liquid Cooling
    Mouse
    Logitech G502
    Keyboard
    Logitech Pro Gamer
    Internet Speed
    111 Mbps Download, 132 Mbps Upload
    Browser
    Edge, Chrome
    Antivirus
    Windows Defender, MalwareBytes
Top Bottom