Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Posts
    6

    command shortcut desktop

    Is it possible to make a command, that creates a shortcut on the desktop of the client's computer?

    I want give the option to install the cdrom on the local harddrive of the clients computer. This is no problem with 'copy folder to'.

    But now we want to create a shortcut on their desktops!
    The problem is: the location and name of the desktop are different on each system: 'desktop', 'bureaublad', documentsettings/user, map 'windows'

    How do I solve this problem?

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Hello,

    I have done just this several times by doing the following.

    1. Create a shortcut on my own desktop. Obviously it has to be to a known folder/exe. My users have a lot of mapped drives (via network logon scripts) so when accessing network folders I have to be careful to use fully qualified UNC's.
    2. Copy the resultant .lnk file into the docs folder of your project.
    3. File.Copy that .lnk file to C:\Document and Settings\All Users\Desktop

    It works very well.

  3. #3
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    113
    Here is the method I use to copy multiple shortcuts to the users desktop.
    When my shortcuts are created they are placed in C:\yoursourcefolder\ICONS.
    This way they only appear for the logged in user and not everyone.

    iFolder = "C:\\yoursourcefolder";
    DestFolder = Shell.GetFolder(SHF_DESKTOP);
    File.Copy(iFolder.."\\ICONS\\*.*", DestFolder.."", true, true, false, true, nil);

    Lee

  4. #4
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Take a look at Shell.CreateShortcut

  5. #5
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    113
    Ron, I do use Shell.CreateShortcut to create the shortcuts on the "master" machine. The program CD is created on the "master" and then distributed to multiple users/machines. Some of them have multiple users on their machines and only want the icon shortcuts to show up on the desktop for the logged in user when installed.

    Thanks,
    Lee

Similar Threads

  1. Delete files/recurse dir -- desktop went blank.
    By jassing in forum Setup Factory 6.0
    Replies: 1
    Last Post: 05-04-2003, 11:04 AM
  2. HOWTO: Change the Desktop Wallpaper
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-02-2002, 09:25 AM
  3. HOWTO: Create a Shortcut on the Desktop
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-19-2002, 02:56 PM
  4. A question on placing a shortcut on the desktop
    By rongrong8 in forum Setup Factory 6.0
    Replies: 1
    Last Post: 05-15-2002, 09:01 AM
  5. Setup Tosses to Desktop after half second
    By cduckett in forum Setup Factory 5.0
    Replies: 4
    Last Post: 09-06-2001, 10:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts