Re: [Dev-C++] How do you find a file's path?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Philippe de R. <phi...@ww...> - 2003-01-22 09:02:23
|
Hello, could someone please explain to me why the Run Dialog has no problem=20 finding IExplorer and passing switches such as -k to it, whereas=20 CreateProcess will only run IE if I specify the full path? Furthermore,=20= why doesn't CreateProcess process switches (e.g. CreateProcess( NULL,=20 "C:\\Program Files\\Explorer\\IEXplore.exe -k", ...)? Many thanks. Philippe de Rochambeau Le mardi, 21 jan 2003, =E0 20:10 Europe/Paris, Oladipo Odumosu a =E9crit = : > Philippe, > > some applications have been assigned to the PATH. most of them can be=20= > run by pressing Win-R (to get to the Run dialog), and entering the=20 > name of the application exec. for expl, Internet Explorer can usually=20= > be run by entering "iexplore" in the Run dialog.if the app you want is=20= > in the system path, you only need to know the name of the exec. > > as per getting the path to an executable, you might just need to=20 > manually hack that. as far as i know, the only functions similar to=20 > what you're looking for are GetWindowsDirectory() and=20 > GetSystemDirectory(). > > bye > > > > > <image.tiff> > > With Yahoo! Mail you can get a bigger mailbox -- choose a size that=20 > fits your needs |