In win2k I think you need to give IUSR_TEMPLATE the permissions for reading
and script, not IUSR_machineName...

tom mallard
seattle

-----Original Message-----
From: PC [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 1:45 PM
To: ActiveServerPages
Subject: Server object error `ASP 0177 : 800a004c`


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.unsub%%


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to