Opening the Command Prompt and working some instructions each time is considerably a tedious job. Are you additionally bored of utilizing it consistently? If sure, then why not you utilize a double-clickable desktop shortcut somewhat than typing and executing some particular instructions. This could be useful for those who run some CMD instructions steadily.
By the way in which, Windows gives you varied methods to open the command immediate however typing and executing the identical command could turn into tiresome typically. To make it straightforward, learn this submit and we are going to present you a straightforward tweak to run command immediate instructions with a desktop shortcut. So let’s get began
Run Command Prompt instructions with a Desktop Shortcut
Running Command Prompt instructions with a Desktop shortcut is a fairly easy course of that doesn’t require a lot data. All you simply must comply with the tactic talked about beneath:
First of all, you need to create a Command Prompt shortcut.
To do that, right-click on the empty house of your Desktop display screen after which choose New > Shortcut.
Doing this, the Windows will open a pop-up window instantly.
Here it is advisable to give the situation of the merchandise you need to execute everytime you run the shortcut.
To achieve this, kind the beneath textual content line after which click on on the Next button:
This will name the cmd executable file to run the command immediate.
Read: How to Clear Clipboard utilizing Shortcut, CMD or Context Menu.
On the subsequent web page, it’s going to ask you to call the shortcut as you would like. After naming it, click on on the Finish button to create the shortcut.
Once it’s accomplished, do a right-click on the Shortcut file and choose Properties from the context menu.
In the Properties window, ensure you’re on the Shortcut tab.
Now go to the Target area and add /okay adopted by your CMD command.
It will look one thing like – C:WindowsSystem32cmd.exe /okay adopted by the command you need to add.
Here “/k” tells Command Prompt to execute the command that you just kind after it.
Note: If it is advisable to add extra shortcuts, simply repeat the above process.
In case you need to edit the beforehand created shortcut command, then merely do a right-click it on it and choose the Properties choice. After that, add the brand new command below the Target area.
For occasion, you’ll be able to create the shortcut command for working the System File Checker device. To create it, kind the beneath command below the goal area:
C:WindowsSystem32cmd.exe /okay sfc /scannow
This will inform the command immediate to run the System File Checker device to scan the broken and corrupted system recordsdata.
In the identical means, you’ll be able to examine how briskly you get a response from Google. Since ping is measured in milliseconds, you’ll have to use the command:
C:WindowsSystem32cmd.exe" /k ping www.google.com
Once you complete the process, run a command via the shortcut instead of opening the command prompt and typing the same commands each time.
Read: Create a single desktop shortcut to open multiple web pages.
Furthermore, if you want to run multiple commands using the Windows 10 Shortcut, you only need to add an ampersand (&) between the commands.
C:WindowsSystem32cmd.exe /k echo Welcome & echo World
This will print Welcome World.
Here you don’t need to use “/k” for each further command. Assign it with the first command and will do the rest.
I hope you find this article helpful.