Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Location
    Cardiff
    Posts
    78

    Pick shortcut location

    Morning all,

    Im having a bit of a mental block (it is Monday morning! ) I need to allow a user to specify a location for a shortcut to be created.

    I have the following code from the help but cant get it to work

    Code:
    location = Dialog.FileBrowse(false, "Save As", "c:\\", "All Files (*.*)|*.*|", "", "", false, true);
    
    Shell.CreateShortcut(location[1], "Managing SEN Shortcut", first_hdd.."Managing_SEN\\Managing SEN in Mainstream Schools.doc", "", "", "", 0, SW_SHOWNORMAL, nil);
    If I leave the filename and file extention fields blank the user gets stuck on the filebrowse dialog. If I enter values for these then a folder is created with those names and the shortcut placed inside. How do I just create a shortcut at the specified location?

    Cheers

    Phil

  2. #2
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    Why didn't you use Dialog.FolderBrowse() ?

    Stefan_M
    "With a rubber duck, one's never alone."

    Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Join Date
    Feb 2004
    Location
    Cardiff
    Posts
    78
    Thats a good question

    Think it must definatley have been a Monday morning thing! I ended up just defaulting the shortcut to the Desktop

Similar Threads

  1. HOWTO: Create a Shortcut to an Internet URL
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-29-2002, 02:07 PM
  2. HOWTO: Uninstall a Shortcut Created with Actions
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 09:50 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. DOS Shortcut Properties
    By ScottWirt in forum Setup Factory 6.0
    Replies: 0
    Last Post: 08-01-2002, 08:07 AM
  5. Uninstall does not remove shortcut folder
    By HayoOellrich in forum Setup Factory 6.0
    Replies: 1
    Last Post: 04-10-2002, 04:38 AM

Posting Permissions

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