Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Permission denied for copying file

Reply
Thread Tools

Permission denied for copying file

 
 
Wanda
Guest
Posts: n/a
 
      08-11-2004
Hi all,

I have a permission denied error when I tried to copy a file from the
local directory to another local directory by using the FSO
(FileSystem)

Set fso = createobject("scripting.fileSystemObject")
fso.CopyFile "c:\inet\wwwroot\webappname\template\aaa.doc",
"c:\inet\wwwroot\webappname\template\bbb.doc"


When I looked at the IIS setting, I have the IUSR_machinename got
setup, and have the write permission on, but I still have no idea why
I still got this error.

Please advice what else I have to know. Thanks in advance. Any help
would be appreicated.
Wanda
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      08-11-2004
Have you checked the NTFS permissions in your target directory to see if
IUSR has permission to modify the directory's contents? Also make sure that
if the target file exists, that it's not read-only or in use.

Ray at work

"Wanda" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi all,
>
> I have a permission denied error when I tried to copy a file from the
> local directory to another local directory by using the FSO
> (FileSystem)
>
> Set fso = createobject("scripting.fileSystemObject")
> fso.CopyFile "c:\inet\wwwroot\webappname\template\aaa.doc",
> "c:\inet\wwwroot\webappname\template\bbb.doc"
>
>
> When I looked at the IIS setting, I have the IUSR_machinename got
> setup, and have the write permission on, but I still have no idea why
> I still got this error.
>
> Please advice what else I have to know. Thanks in advance. Any help
> would be appreicated.
> Wanda



 
Reply With Quote
 
 
 
 
Wanda Li
Guest
Posts: n/a
 
      08-11-2004


Perfect thanks, it works

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: libclntsh.so.10.1: cannot open shared object file: Permission denied gmax2006 Python 3 08-08-2006 11:27 PM
Re: ImportError: libclntsh.so.10.1: cannot open shared object file:Permission denied Bill Scherer Python 0 07-20-2006 07:28 PM
saving file permission denied on windows zombek@gmail.com Python 4 05-16-2006 01:59 PM
File access Permission Denied Tina ASP .Net 2 03-16-2006 06:07 PM
Can't do setuid and file permission denied Chris Perl 1 10-28-2003 03:34 PM



Advertisments