windows folder

hi, simple question this time:

how can i get the folder where the windows is installed into

thnx




Answer this question

windows folder

  • Shaun Whyte

    Environment.GetFolderPath(Environment.SpecialFolder.System) will return "C:\windows\system32"
    Path.GetDirectoryName(Environment.GetFolderPath(Environment.SpecialFolder.System))
    will give you C:\windows - Windows being of course your actual instalation directory which is sometimes winnt



  • windows folder