bleemer
April 26th, 2002, 06:00 AM
Hi all,
Does anyone know if there is a win32 API or similar that will resolve a file path containing environment varaibles on the fly?
i.e. How do I open "%TEMP%\mydir\myfile.txt" ?
Must I first parse what's between the %'s then try to resolve it with GetEnvironmentVariable() and build the file name before I open it?
or is there an easier way?
TIA.
Al.
Does anyone know if there is a win32 API or similar that will resolve a file path containing environment varaibles on the fly?
i.e. How do I open "%TEMP%\mydir\myfile.txt" ?
Must I first parse what's between the %'s then try to resolve it with GetEnvironmentVariable() and build the file name before I open it?
or is there an easier way?
TIA.
Al.