General information
Category:
Windows API functions
Title:
How to determine if path is local or remote
My program needs to determine whether a given path points to a local disk drive or a network drive. I thought of simply looking for two slash marks at the beginning of the string, e.g., at("\\",m.string)<>0, but if the network directory had been assigned to a drive letter (e.g., d:), the expression would evaluate false.
Is there an API call or any other means of determining this?
Thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only