How do I create a command line shortcut?
Answer
How to Run Command Prompt Commands With a Desktop Shortcut
Answer
How to Run Command Prompt Commands With a Desktop Shortcut
- Right-click anywhere in File Explorer or the Desktop and select New > Shortcut.
- For the location of the item, type in “C:\Windows\System32\cmd.exe” /k [your desired command here] making sure to replace the bracketed text with the command you want to run.
- Click Next.
- Give the shortcut a name.
- Click Finish.