Does anyone know how to map a drive from within a Delphi program? For instance, map F: to \\server\sharename\folder1. One reason I want to do this is to test my program's ability to see the other machines on a network before I try database operations in a changing or uncertain environment. I frequently have to access multiple remote servers and perform queries, etc. on the data files on these servers. I suppose I could just test using connect:=true from a Tdatabase component, but surely there is a way to invoke the standard network drive mapping procedure?
I have looked through the Windows SDK help without success, but I could be missing something obvious. If the answer involves calls to Windows procedures, some actual code would be appreciated. Thanks in advance for the help.
Carl
I have looked through the Windows SDK help without success, but I could be missing something obvious. If the answer involves calls to Windows procedures, some actual code would be appreciated. Thanks in advance for the help.
Carl