Mark Yedinak Posted October 25, 2008 Report Share Posted October 25, 2008 Does anyone know of a good way to obtain the system directory information on a Windows platform? Specifically I need to get to the driver directory. Normally this directory is c:\Windows\inf however since the base directory for the OS is not guaranteed I would like a more general approach. I would be satisfied if I could get the base OS directory as well. I am open to using .net (I am not a .net expert so it may be there but I just haven't found it) some some other means if necessary. Thanks Quote Link to comment
Francois Normandin Posted October 25, 2008 Report Share Posted October 25, 2008 Hi Mark, you can call the kernel32.dll and use GetSystemDirectory command. Download File:post-10515-1224864793.vi Quote Link to comment
LAVA 1.0 Content Posted October 25, 2008 Report Share Posted October 25, 2008 This link could be useful. Quote Link to comment
Mark Yedinak Posted October 25, 2008 Author Report Share Posted October 25, 2008 Thanks one and all. Those examples did the trick. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.