Link to home
Start Free TrialLog in
Avatar of boeman
boeman

asked on

Get windows system directory

How can I retrieve the Windows root directory or the system32 directory?
I've been looking for an API GetSystemRoot or GetWindowsRoot or something like that with no result...
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Try:
environ("windir")
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of boeman
boeman

ASKER

muchos gracias