Sign in to follow this  
Followers 0
michaelslamet

How to know local drive or not?

2 posts in this topic

If user input filepath+filename, how could we know that is a local drive or not (maybe network drive)?

If user input "servernameshare-namefilename.exe" then we know the file is on network drive,

but what if he input "H:filename.exe"?

Can I assume local drive is only C: D: and E: ?

Or is there any function some thing like _IsLocalDrive to verify is a file is on local drive or in network drive?

Thanks :)

Share this post


Link to post
Share on other sites



Answering my own post, seems like I can use DriveGetType

Thanks for reading this post! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0