What is Create Shortcut?


Create Shortcut


Create Shortcut is a neat little program that lets you create shortcuts to your favorite apps right from the command prompt or a bat/cmd file. If you're into writing those bat or cmd files, this tool is super handy! It even gives you a return code so you can check if everything went smoothly by using ERRORLEVEL in your script. You'll find a table in the documentation that explains what each return code means.



How to Use Create Shortcut


Using CreateShortcut is pretty straightforward. The most important thing you need to do is tell it where to create the shortcut (you'll need to add ".lnk" at the end) and specify which program should open when someone clicks on that shortcut. To do this, you'll use two key arguments: -l for the link file and -p for the program path. Just remember, if your file paths have spaces, don't forget to put quotes around them!



Command Line Arguments


Usage:
CreateShortcut [-h -o -q] -l LinkFile -p Program [-w WorkingDir] [-a Arguments]



Understanding the Arguments


Here's what each argument does:



  • -h: This shows a help screen and won't create any shortcuts.

  • -o: This option will overwrite an existing shortcut if there's one with the same name.

  • -q: This runs quietly without showing any program info.

  • -l: This specifies the name of the shortcut file with .lnk extension.

  • -p: Here, you put the program that your shortcut will open.

  • -w: This sets a working directory for when your program runs.

  • -a: Here's where you can add extra arguments for your program.


Example:


CreateShortcut -q -l MyLink.lnk -p notepad.exe -a "c:\program files\readme.txt"


If you're looking for more information, check out this link to download Create Shortcut!Download Now!


How Download Works

Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!

SoftPas Safety Info
SoftPas

SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.

Recent

Help

Subscribe to newsletter


© Copyright 2024, SoftPas, All Rights Reserved.