This may be a stupid question, but why the * in vFile1?  I don't
believe you can use wildcards, but I may be incorrect.

Plus, you shouldn't get errors on the line that sets objFSO ever,
so don't expect any on that line. It will happen most of the time when
you try to read, write or move files.

Chris Tifer


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


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

Reply via email to