¤ Hi all.
¤ How can I retrieve the windows directory (not system!) in VB.Net?
¤ Thanks in advance.
Dim WinSysPath As String = System.Environment.GetFolderPath(Environment.SpecialFolder.System)
Dim WinPath As String = WinSysPath.Substring(0, WinSysPath.LastIndexOf("\"))
Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
Good answer , much cleaner than mine and managed as well !
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.