How to find the location of windows and windows\system folders 
Author Message
 How to find the location of windows and windows\system folders

Hi!

Im trying to find a way to look for the location of the Windows and
Windows\System folders, which of course could be the standard WINDOWS or
WIN, WINNT, WINDOZE, etc.
In VB6 there was those functions GetWindowsDirectory and GetSystemDirectory
but there isn't equivalents in VB.NET.
Please help!



Wed, 24 Aug 2005 08:43:44 GMT  
 How to find the location of windows and windows\system folders
Hello Nuno,


Quote:
> Im trying to find a way to look for the location of the Windows and
> Windows\System folders, which of course could be the standard WINDOWS or
> WIN, WINNT, WINDOZE, etc.

\\\

' System folder.
s = Environment.GetFolderPath(Environment.SpecialFolder.System)

' Windows folder.
s = Environment.GetEnvironmentVariable("windir")
///

Regards,
Herfried K. Wagner



Wed, 24 Aug 2005 08:57:32 GMT  
 How to find the location of windows and windows\system folders


Quote:
> Hi!

> Im trying to find a way to look for the location of the Windows and
> Windows\System folders, which of course could be the standard WINDOWS or
> WIN, WINNT, WINDOZE, etc.
> In VB6 there was those functions GetWindowsDirectory and
GetSystemDirectory
> but there isn't equivalents in VB.NET.

look at
environment.GetFolderPath(Environment.SpecialFolder.System), for example ...


Wed, 24 Aug 2005 11:24:40 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Finding the Windows "SYSTEM" folder

2. SOLVED Finding the Windows "SYSTEM" folder

3. Windows Find (Start:Find:Files and Folders)

4. Get Windows Folder Location on a Connected Computer

5. document.location or window.location Question

6. Finding Windows folder

7. Interface to Windows Find files or folders

8. Folder windows and executable windows question

9. Find Windows System Directory via VBA?

10. System.windows.Forms not found

11. VB Function to find Windows System Directory

12. Making a window system modal under Windows 95/NT

 

 
Powered by phpBB® Forum Software