I get this Server object error when using the FSO copyfolder command. The
message says "Server.CreateObject Failed", then it says "The operation
completed successfully", but the folder is not copied. I have searched the
microsoft support site and cannot get info on what this error means.
Here is my code -
vFolder = "C:\inetpub\wwwroot\proj\folder1\subfolder\"
vFile1 = "C:\inetpub\wwwroot\proj\folder1\subfolder\*"
vFile2 = "C:\inetpub\wwwroot\folder2"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FolderExists(vFolder) then
objFSO.CopyFolder vFile1,vFile2
<<<<ERROR OCURRS HERE, NOT ON THE CREATE OBJECT LINE!
End IF
This DOES work on my PC, running Windows 98, with PWS. But it will not
work on my IIS 4 webserver, so I am guessing this is a security issue. I
have tried giving the IUSR_machinename 'change' permission (and 'full
control') to both the source and destination directories, but no luck. Any
ideas?
Thanks
Patti
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]