CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2009

    Hyperlink with command line arguments

    I was wondering if anyone new of a way to add command line arguments to a hyperlink? I would like to call an application and pass a value to it. Like, C:\test.exe fileName.
    I can load the application without the argument, but when it is added to the link, an error message is displayed with "can not open specified file."

    I would prefer not to add any VBA code to the word files to avoid issues with macros being disabled.

    Any other ideas of how to do this would be greatly appreciated.

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: Hyperlink with command line arguments

    Give us an example of a hyperlink that accepts parameters?

    You can call an exe with parameters, but not links

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Tags for this Thread

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.