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
|