M
MacMan0295
I am trying to create a folder on a fileserver from an ASP page using
VBScript. The VBScript I am using work fine, but when I try to change it to
work on the asp page it fails. If I try to use "i:\folder" it says drive not
ready. If I try to use "\\server\folder" it says permission denied. Here is
what I got:
Set objFSO = CreateObject("Scripting.FileSystemObject")
fldPath = "\\server\folder\" & grpName & "\" & fldName
Response.Write(fldPath & "<br>")
If objFSO.FolderExists(fldPath) = True Then
Response.Write "Folder " & fldPath & " Exists!"
Else
Response.Write "Creating folder... " & fldPath
Set objFolder = objFSO.CreateFolder(fldPath)
SetACLs fldPath,grpName,fldName
End If
Any help is appreciated. Thank you.
VBScript. The VBScript I am using work fine, but when I try to change it to
work on the asp page it fails. If I try to use "i:\folder" it says drive not
ready. If I try to use "\\server\folder" it says permission denied. Here is
what I got:
Set objFSO = CreateObject("Scripting.FileSystemObject")
fldPath = "\\server\folder\" & grpName & "\" & fldName
Response.Write(fldPath & "<br>")
If objFSO.FolderExists(fldPath) = True Then
Response.Write "Folder " & fldPath & " Exists!"
Else
Response.Write "Creating folder... " & fldPath
Set objFolder = objFSO.CreateFolder(fldPath)
SetACLs fldPath,grpName,fldName
End If
Any help is appreciated. Thank you.