How To Run Command Prompt Commands from a Windows Shortcut

To create a Windows shortcut that runs a command at the command prompt, right-click the desktop and select "Shortcut"

Step 1: Click on a blank area.

Step 2: You can click Shortcut.

Step 3: You can type into the text box.

The command prompt window is kept open with the -k flag.If you want the window to close immediately, you can remove the flag.

Step 4: Press the spacebar.

Step 5: You can type the command.

When you double-click this shortcut, whatever command you type after %comspec% /k will run.When you double-click the shortcut, it will ping www.google.com.When you double-click the shortcut, %comspec% /k sfc scans all protected system files.

Step 6: You can click next.

Step 7: You can enter a name.

The text will be under the icon.If you use the shortcut, you could type in the name of the search engine.

Step 8: Click to finish.

You can now use the shortcut on your desktop.

Step 9: To run the command, double click the shortcut.

You can see your command running when the command prompt window appears.

Step 10: You can create a shortcut for the command.

A keyboard shortcut is a combination of keys.To create one for a command line command, make sure you have already created a desktop shortcut.The keyboard's format is Ctrl+Alt+[other key].You can choose a letter, number, or punctuation key to be the other key.

Step 11: Click on the shortcut.

Step 12: Click on the properties you want to view.

The Properties screen will show the shortcut tab.

Step 13: Click into the box.

Step 14: Press a letter or number.

The text box will fill if you press the key.The text in the box will change if you press p.

Step 15: Click OK if you don't want to.

You will return to the computer.

Step 16: Press the other key to run the command.

The command you set up in the desktop shortcut will prompt the command prompt window.

Related Posts:

  1. A list of flags with blue, red, and white stripes.
  2. What is the meaning of the black and white American flag?
  3. The Ultimate Pride Guide is a collection of flags and symbols for lesbian, gay, bisexual, and queer people.
  4. There are flags with three horizontal stripes of blue, red, and white.