Click to See Complete Forum and Search --> : search for file but not with "App.path"


ant
June 15th, 2001, 07:26 AM
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: cgeorge@thevortex.com
for the address

dfwade
June 15th, 2001, 07:45 AM
you can issues a chdir("C:\")

ant
June 15th, 2001, 12:40 PM
where do i put the filename?

--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: cgeorge@thevortex.com
for the address

phunkydude
June 15th, 2001, 12:48 PM
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.