How to: Add and Remove Shortcuts in the File System Editor

Shortcuts can be added to a deployment project in order to provide direct access to files on the target computer. For example, you might want to allow a user to launch an executable file by placing shortcuts to it on the user's desktop and Start menu, or you might want to add a shortcut to the Application folder so the user could browse its contents.

Caution noteCaution:

Attempting to add an existing shortcut via the Add Files command will add the file that the shortcut points to rather than the shortcut itself.

NoteNote:

   The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To add a shortcut to a file or folder

  1. In the File System Editor, select the file or folder to which you want to create a shortcut.

    NoteNote:

    When adding a shortcut to a special folder, you must set the AlwaysCreate property of the folder to true.

  2. On the Action menu, click Create Shortcut to <Name>. The shortcut appears in the file list.

    NoteNote:

    The Action menu is in the top navigation bar or in the shortcut menu.

  3. Select the shortcut, and choose Cut from the Edit menu.

  4. In the folder list, select the folder where you want the shortcut to appear on the target computer, and choose Paste from the Edit menu.

    TipTip:

    You can also drag shortcuts from one place to another.

To remove a shortcut

  • Select the shortcut in the file list, and choose Delete from the Edit menu.

Community Additions

Show: