We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[2329] Create a File Shortcut

Last post 09-09-2007 1:37 AM by Vitus13. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [2329] Create a File Shortcut

    This thread is for discussions of Create a File Shortcut.

    • Post Points: 25
  • 05-31-2002 6:03 PM In reply to

    Great code!

    This code comes in handy when creating a setup program the creates shortcuts to programs. I like it because it works with few lines of code. Thank you very much! I've been looking for this for a very long time!
    Happy programming!
    • Post Points: 0
  • 10-17-2003 10:05 AM In reply to

    • Opo
    • Not Ranked
    • Joined on 10-17-2003
    • New Member
    • Points 5

    Read the value

    Hello !

    When the shortcut is created, how can I read with VB or another language the value of arguments and targetpath ?

    Thanks !
    • Post Points: 0
  • 12-07-2003 12:04 PM In reply to

    • bocay
    • Not Ranked
    • Joined on 12-07-2003
    • New Member
    • Points 25

    Confused??? please help i'm stuck


    I'm using this code but sometimes i get the message "set objshell  doesn't declare" i've assign the "WSHOM.OCX" things and the "dim " things..
    BUT
    sometimes it works, but sometime it doesn't...  Help me please
    • Post Points: 0
  • 09-09-2007 1:31 AM In reply to

    • Vitus13
    • Not Ranked
    • Joined on 09-09-2007
    • United States
    • New Member
    • Points 10

    Re: [2329] Create a File Shortcut

    Hello,
         I have used your code and had success adding in the Ocx and the Dim statements, However... When I run the application I recieve a ComException. the report goes somethinglike this, ComException was unhandled: unable to save "C:\...\...\...\...\Link.lnk"

         In the error report I retrived the Com error number which is -2147467259. the error occurs the first time I run this statement: objshortcut.Save()

         Any Help Would Be Appreciated

    ~Vitus

    • Post Points: 5
  • 09-09-2007 1:37 AM In reply to

    • Vitus13
    • Not Ranked
    • Joined on 09-09-2007
    • United States
    • New Member
    • Points 10

    Re: [2329] Create a File Shortcut

    Hello,
         I have used your code and it has worked well for me till now. I have added the .Ocx and the Dim statements and all has gone well. However now that I run the program I recieve a COMException.

         The error number form the report says it's -2147467259. it is raised when I call Objshortcut.Save(),and the error reads "COMException was unhandled: Unable to save file: C:\...\...\Link.lnk

         Any Help Would Be Appreciated

    ~Vitus

    • Post Points: 5
Page 1 of 1 (6 items)