Here is a vbs script that maps a drive fine from my computer:
Dim WshNetwork ' As IWshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
Dim FSO ' As FileSystemObject
Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
Const DriveLetter = "r:"
Const SharePath = "\\computer\path"
If FSO.DriveExists(DriveLetter) Then
' Do nothing
Else
WshNetwork.MapNetworkDrive DriveLetter, SharePath
End If
Set FSO = Nothing
Set WshNetwork = Nothing
The trouble begins when I try to put that script in an asp page so when it runs from a web page it will map to a drive on my server and copy down a couple files from my server to a client computer. It gives me an error that says, "Variable is undefined: 'WScript'." Or does anybody know a different or easier way to have it copy files down to a client by just clicking on a button. Thanks in advance for any help.
RAR