Permission denied for copying file

Discussion in 'ASP General' started by Wanda, Aug 11, 2004.

  1. Wanda

    Wanda Guest

    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
     
    Wanda, Aug 11, 2004
    #1
    1. Advertising

  2. Wanda

    Ray at Guest

    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" <> wrote in message
    news:...
    > 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
     
    Ray at, Aug 11, 2004
    #2
    1. Advertising

  3. Wanda

    Wanda Li Guest

    Perfect thanks, it works

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Wanda Li, Aug 11, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris
    Replies:
    1
    Views:
    857
    Roy Johnson
    Oct 28, 2003
  2. Tina

    File access Permission Denied

    Tina, Mar 16, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    10,074
    Winista
    Mar 16, 2006
  3. Replies:
    4
    Views:
    5,926
  4. gmax2006
    Replies:
    3
    Views:
    17,305
    Damjan
    Aug 9, 2006
  5. Bill Scherer
    Replies:
    0
    Views:
    2,104
    Bill Scherer
    Jul 20, 2006
Loading...

Share This Page