How do I create a command line shortcut?

Việt Quân

New member
How do I create a command line shortcut?
Answer
How to Run Command Prompt Commands With a Desktop Shortcut
  1. Right-click anywhere in File Explorer or the Desktop and select New > Shortcut.
  2. 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.
  3. Click Next.
  4. Give the shortcut a name.
  5. Click Finish.
 

Tìm kiếm

Back
Top