D
Dean R. Henderson
I am using VB code to create a Console application that is started on a
Windows 2003 Server via a Scheduled Task. Files are moved to and/or from a
Network Resource that I want to be setup as a Mapped Network Drive.
Currently, the application is being started with a user id based on the
Scheduled Task that allows the use of a fully qualified network name, but I
want to have the flexibility to Map the Network Drive with an alternate user
id (based on configuration data) and I am trying to find a way to
programmatically Map the Network Drive in the VB Console application.
There is a C++ Win32 function NPAddConnection that connects a local device
to a network resource that may offer a way to do this ... Does anyone have a
suggestion about how to make use of this function from a VB.NET 2005 program
(the NPAddConnection function is part of the Network Provider API functions
documented in the Windows Platform SDK).
Thanks for any suggestions/advice.
Dean
Windows 2003 Server via a Scheduled Task. Files are moved to and/or from a
Network Resource that I want to be setup as a Mapped Network Drive.
Currently, the application is being started with a user id based on the
Scheduled Task that allows the use of a fully qualified network name, but I
want to have the flexibility to Map the Network Drive with an alternate user
id (based on configuration data) and I am trying to find a way to
programmatically Map the Network Drive in the VB Console application.
There is a C++ Win32 function NPAddConnection that connects a local device
to a network resource that may offer a way to do this ... Does anyone have a
suggestion about how to make use of this function from a VB.NET 2005 program
(the NPAddConnection function is part of the Network Provider API functions
documented in the Windows Platform SDK).
Thanks for any suggestions/advice.
Dean