471,356 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

drive letter on which OS is installed

How to determine the drive letter on which the OS is installed ?

Sep 4 '08 #1
1 1350
Well, you could use:

string drive = Environment.GetEnvironmentVariable("SystemDrive");

Marc
Sep 4 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.