Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Location of the windows folder

Status
Not open for further replies.

Learning123

Programmer
Joined
May 12, 2002
Messages
29
Location
US
Hi Everyone!
I was wondering if these a method in VBScrpit to find exactly where Windows is installed? Such as "C:\Windows" or if it's in D: "D:Winnt". Thanks in advance!!



She's a Lithium Flower
 
Dim objFSO
Set objFSO = WScript.CreateObject("Scripting.FileSystemObject")
WScript.Echo objFSO.GetSpecialFolder(0).Path
Set objFSO = Nothing
 
THANK YOU! THANK YOU! THANK YOU!

She's a Lithium Flower
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top