Try using Call statement to call Win API function WNetAddConnection2 in MPR.DLL DWORD WNetAddConnection2( LPNETRESOURCE lpNetResource, // points to structure that specifies connection details LPCTSTR lpPassword, // points to password string LPCTSTR lpUsername, // points to user name string DWORD dwFlags // set of bit flags that specify connection options ); : Mapping a drive via 24x7 scripting : ================================== : can this be done? : we don't want to call a batch file that does it. : we want it done internally in the script. : does anybody know how? thank you.
|