CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Location
    CenTex
    Posts
    32

    How can I execute another program programmaticly......

    ...that is listed in the PATH under Enviroment Variables?

    Currently I'm using _spawnl, but that requires a full path to the ".exe" file.

    Thanks!

  2. #2
    Join Date
    Nov 2001
    Posts
    323

    Re: How can I execute another program programmaticly......

    Best Regards,

    --Zim
    If you find this post useful, please rate it.
    _________________________________
    "Have you the brain worms?!?!?"

  3. #3
    Join Date
    Oct 2002
    Posts
    1,134

    Re: How can I execute another program programmaticly......

    You could use SearchPath(...) to retrieve the full path of the executable. It searches whatever is in the PATH variable last, so there may be a problem if the executable exists in more than one directory.
    Regards
    Robert Thompson

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

Featured