Friday, February 27, 2009

Run a Shortcut from the Command Prompt

Since Shortcuts to applications aren't recognized by DOS, you can't execute them directly. However, there is a way to launch them, either from the prompt, or from a batch file:

  • Type the following: start "c:\directory\Shortcut to Someprog.exe.lnk", where c:\directory is the full path containing the shortcut, and Shortcut to Someprog.exe.lnk is the filename of the shortcut.

No comments:

Post a Comment