1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

very simple newb question :P (i think)

Discussion in 'Software Development' started by xenogen, Sep 30, 2008.

Thread Status:
Not open for further replies.
  1. xenogen

    xenogen Thread Starter

    Jan 12, 2008
    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.
  2. jdean


    Jan 20, 2002
    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
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 733,556 other people just like you!

Similar Threads - very simple newb
  1. Pedro14
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/754769

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice