VB4 and Windows System Path 
Author Message
 VB4 and Windows System Path

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




Sat, 24 Mar 2001 03:00:00 GMT  
 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





Sat, 24 Mar 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How do I get the Windows System path?

2. How to make setup disk to install .exe to windows system path

3. Windows System path

4. Getting Windows system path

5. How can I read out the current installation and WINDOWS\SYSTEM path

6. Enforce using DLL at specified path rather than at System path

7. VB4 16bit App runs from CD without installing components into windows\system

8. Expanding SYSTEM %PATH% with embedded SYSTEM environment variable problem

9. Help: App.Path returns 8.3 path in VB4/Win95

10. How to find the location of windows and windows\system folders

11. Newbie: VB4, Windows 95 platform, Windows 3.1 target

12. DDE & VB4 - Windows 3.11 vs Windows 95

 

 
Powered by phpBB® Forum Software