very simple newb question :P (i think)

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

xenogen

Thread Starter
Joined
Jan 12, 2008
Messages
50
ok im new to vb, have done a big long tutorial thing to get the basics, but what i need is a way to specifically refer to the root directory of the windows installation, in case its not the c drive, i will be searching for the existance of several folders there, and if they dont exist, creating them.
 
Joined
Jan 20, 2002
Messages
433
Windows has a function called GetWindowsDirectory that will return the full path to the windows installation directory. I don't know how to access this in VB but perhaps this will be a starting point for you.

Alternatively, there are environment variables that contain this information. One is called "windir" and Google shows another one called "SystemRoot". You should be able to look these up using Environment.GetEnvironmentVariable
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top