Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Deployment in Visual Studio
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.

sat42980.alert_caution(en-us,VS.90).gifCaution:

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.

sat42980.alert_note(en-us,VS.90).gifNote:

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.

    sat42980.alert_note(en-us,VS.90).gifNote:

    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.

  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.

    sat42980.alert_note(en-us,VS.90).gifTip:

    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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker