Patti, MSDN library says this confusing error can occur when the file
doesn't exist or the path is invalid and you're using the copy or delete
methods.  You've got a single asterisk at the end of vFile1 string... I
don't think you can do that.

HTH

----- Original Message -----
From: "PC" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 1:44 PM
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 PROTECTED]

Reply via email to