• Connect to Network Drive Without Mapping (VB6 SP6)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Connect to Network Drive Without Mapping (VB6 SP6)

    Author
    Topic
    #441225

    I need to programmatically connect to a network server/share, but, due to policy, can’t establish a mapping, even temporarily. I know I can use an API call like “WNetAddConnection2” to locate a server and map a logical drive to it, but this violates the “no mapping” rule. The goal is to be able to read files on the remote server, then break the connection. The user should be unaware of the remote connection, and unable to see this connection in Windows (e.g. Explorer, Connections, etc.).

    Does anyone know of an API like WNetAddConnection2 that will allow me to connect to a remote server, ideally with a UNC path, without having to map a drive?

    Viewing 0 reply threads
    Author
    Replies
    Viewing 0 reply threads
    Reply To: Connect to Network Drive Without Mapping (VB6 SP6)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: