Results 1 to 2 of 2

Thread: getting an argument from Main

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Location
    Oklahoma City
    Posts
    1

    getting an argument from Main

    Does any one know of a way I can send arguments to a VB app. Example: By double clicking on a .doc it will open MsWord with the doc file loaded. I have made the association in Windows but I don't know how to get the argument or file name from system. I have tried the getcommandstring() api and I guess I could make that work but it would take alot of programming.

  2. #2
    jim mcnamara
    Guest
    Command$ returns the command line in VB

    ShellExecuteEx is what opens associated files. I'm assuming you have associated a file type with your VB app. When you double-click on the file, and your VB app opens, right?

    On double-click the shell places the filename as the first commandline parm in a call to your code.

Posting Permissions

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



Click Here to Expand Forum to Full Width