
VB4 and Windows System Path
Hi there..
UINT GetSystemDirectory(
LPTSTR lpBuffer, // address of buffer for system directory
UINT uSize // size of directory buffer
);
This gives you the system directory, reagrdless of OS (95,98,NT)
Good luck!!
-Dave
http://www.erols.com/dparsons
----------------------------------------------------
-----------------------------------------------------
Quote:
>I'm working on a program that needs to place a text file in the Windows
system
>path, write to the file, and eventually retrieve the file adding it to a
zip
>file for return to me. I know that the VB setup wizard can be used to
place
>the file in the system path without a problem, but I have to be able to
find
>the system path in the program in order to write to it and hopefully zip
the
>file when needed. There must be an easy way to find this info, can anyone
tell
>me the API call I need to use? I know the system path is different on some
>systems (when not using default windows dir and all or in NT vs 95/98).
Any