From: "Ara.T.Howard" Date: 2005-09-13T23:18:26+09:00 Subject: Re: find executables on windows On Tue, 13 Sep 2005, Kroeger Simon (ext) wrote: > MSDN, CreateProcess: > > ...If the filename does not contain a directory path, the system > searches > for the executable file in the following sequence: > > - The directory from which the application loaded. > > - The current directory for the parent process. > > - Windows 95 and Windows 98: The Windows system directory. > Use theGetSystemDirectory function to get the path of this directory. > > - Windows NT: The 32-bit Windows system directory. > Use the GetSystemDirectory function to get the path of this > directory. > The name of this directory is SYSTEM32. > > - Windows NT: The 16-bit Windows system directory. > There is no Win32 function that obtains the path of this directory, > but it is searched. The name of this directory is SYSTEM. > > - The Windows directory. Use theGetWindowsDirectory function to get the > > path of this directory. > > - The directories that are listed in the PATH environment variable. > > erm, yes, that's it! :) i think i'll settle for PATH ;-) -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================