View Single Post
  #3 (permalink)  
Old December 21st, 2004, 08:56 AM
mmcdonal mmcdonal is offline
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

   It occurs to me that you may have security issues with this remote access. Try mapping the drive, getting data, and unmapping like this:

'===============================
Set objNetwork = WScript.CreateObject("WScript.Network")
   objNetwork.MapNetworkDrive "x:", "\\ServerName\ShareName", _
     strUserName, strPassword

'your code here

objNetwork.RemoveNetworkDrive "x:"
'===============================

   This will allow you to access the drive with the credentials you need if your users don't have the proper credentials.

mmcdonal
Reply With Quote