View Full Version : Checking if a path is a network path?

11-12-2003, 07:46 AM

I'm looking for a function that could tell if a given path points to the local machine or for some other computer.

Is there one?

11-12-2003, 01:00 PM

We don't have a specific function for checking this. You would have to do some scripting of your own. The ParsePath function or the GetDisk function can be used to get the drive letter (or UNC server and shared device name). If you get back a drive letter, you can then compare it with lists created by calling the GetValidDrivesList function to find out whether it is a local drive or a remote (mapped) drive.