cjkenworthy
Programmer
I have some identical vbscript in two files, in the same directory, with the same file attributes, yet one runs fine, the other gives a permission denied:
Dim varPath
varPath = "\\PDC01\docs\new_dir_name"
set objFS = Server.CreateObject("Scripting.FileSystemObject"
set objDirectory = objFS.CreateFolder(varPath)
set objDirectory = nothing
set objFS = nothing
The code runs fine in isolation in one file, but as one of many operations in another file, it fails. The 'other functions' in that file work fine, but I get the permission denied in there - at the 'objFS.CreateFolder(varPath)' line.
Any ideas? I'd be happy to post the complete file which fails.
Dim varPath
varPath = "\\PDC01\docs\new_dir_name"
set objFS = Server.CreateObject("Scripting.FileSystemObject"
set objDirectory = objFS.CreateFolder(varPath)
set objDirectory = nothing
set objFS = nothing
The code runs fine in isolation in one file, but as one of many operations in another file, it fails. The 'other functions' in that file work fine, but I get the permission denied in there - at the 'objFS.CreateFolder(varPath)' line.
Any ideas? I'd be happy to post the complete file which fails.