I have written a program that uses file and such from other mapped drives. Is there a way (for error trapping purposes) to see if the user is connected to the network.
Any suggestions would be of great help.
Thanks in advance,
Mike
Printable View
I have written a program that uses file and such from other mapped drives. Is there a way (for error trapping purposes) to see if the user is connected to the network.
Any suggestions would be of great help.
Thanks in advance,
Mike
I think simple Dir$ function on mapped dirive letter can let you know if that drive is connected or not. For more sophisticated functions check MSDN for key word "Windows Networking (WNet)" There are bunch of function to add / delete connection and get connection information.
Vinayak Sapre