CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2001
    Posts
    155

    search for file but not with "App.path"

    how do you make it so that when the form loads it will search for a file that's not in the same directory as the application. how do you make it search C: for the file but not c:\program files\bla bla bla\bla2\bla.exe?

    --Ant
    --------------------------------------------------
    check out my newest freeware
    E-mail me at: [email protected]
    for the address

  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: search for file but not with "App.path"

    you can issues a chdir("C:\")


  3. #3
    Join Date
    May 2001
    Posts
    155

    Re: search for file but not with "App.path"

    where do i put the filename?

    --Ant
    --------------------------------------------------
    check out my newest freeware
    E-mail me at: [email protected]
    for the address

  4. #4
    Join Date
    Aug 2000
    Location
    Namibia
    Posts
    139

    Re: search for file but not with "App.path"

    If I understand you, you're not willing to have the user select the file, with a File Open dialog, so you may want to check out the FindFirstFile api.


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