Create program shortcut from command line


















Some users use Command Prompt daily. There were lots of users who use Command Prompt daily. So, if you are amongst those who use CMD at regular intervals, then this post might be beneficial to you. In this article, we are going to share a method that would let you run CMD commands directly from the desktop. For that, we need to create a command prompt shortcut on the desktop. Once created, you can make the desktop shortcut to execute the CMD command of your wish.

Now you know how to make a shortcut that, when double-clicked, will either open the command prompt or automatically execute a command of your choosing. If you want to know what kind of commands you can use with your new trick, why not check out some CMD prompts and learn all the different ways you can control your PC at the click of a shortcut? The command prompt is still a powerful Windows tool.

Here are the most useful CMD commands every Windows user needs to know. A Computer Science BSc graduate with a deep passion for all things security.

After working for an indie game studio, he found his passion for writing and decided to use his skill set to write about all things tech. Let's explore how to make a Windows shortcut that runs a command prompt. Share Share Tweet Email. Simon Batt Articles Published. Subscribe to our newsletter Join our newsletter for tech tips, reviews, free ebooks, and exclusive deals! Click here to subscribe. Also creating simlink requires admin privilege. Nir Alfasi Nir Alfasi 1, 1 1 gold badge 10 10 silver badges 10 10 bronze badges.

That's not a shortcut; it's just a batch file that invokes a specified program. A batch file is the equivalent of a windows "shortcut" when you run in CMD dos like env. Since he put "shortcut. I changed my answer.

Show 1 more comment. Jimadine Jimadine 1, 1 1 gold badge 8 8 silver badges 13 13 bronze badges. With the Git I have verison 2. Ahh, I see that now. I missed on first read because text field scrolled off right of screen and my hasty reading. I know this topic is old but I wanted to provide the simple solution that worked for me.

Michele Michele If this is the approach to take, it is better to create the actual shortcut. That shortcut can then be copied everywhere. While I can understand the confusion, the question is about creating the "shortcut file" or "link file" extension.

Your answer explains how to give an existing shortcut file a keyboard "shortcut". Your answer does not fit the question. But I will not downvote. It is well written and pictured and was given in good faith. I'd say it deserves an upvote just for the effort taken to compose it.

Upvote given. At least, it does not deserve a negative score. You can create an easy. CreateShortcut WScript. Arguments 1 lnk. Save From command line or batch script enter this command: wscript Shortcut. Mario Palumbo Mario Palumbo 5 5 bronze badges. LNK shortcut file. Download: Shortcut NirCmd NirCmd is a command-line utility from Nir Sofer that can create shortcut to a file or folder, among various other tasks.

Its syntax is: nircmd.



0コメント

  • 1000 / 1000