Hyperlink with command line arguments
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Hyperlink with command line arguments

  1. #1
    Join Date
    Jan 2009
    Posts
    1

    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.
    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,945

    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
    David

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center