Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Permission Denied Error

Permission Denied Error

Scheduled Pinned Locked Moved Web Development
sysadminhelpquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrNed
    wrote on last edited by
    #1

    Im using the file system object to delete files from the W2k server, and am running into the permission denied error. Things Ive done/checked: - Given full access to the IUSR user on the folder/files to delete - Given full access to everyone on SCRRUN.DLL - Rebooted several times just in case - The file is not read only (and im using the force=true parameter anyway) What else can I try???

    N 1 Reply Last reply
    0
    • M MrNed

      Im using the file system object to delete files from the W2k server, and am running into the permission denied error. Things Ive done/checked: - Given full access to the IUSR user on the folder/files to delete - Given full access to everyone on SCRRUN.DLL - Rebooted several times just in case - The file is not read only (and im using the force=true parameter anyway) What else can I try???

      N Offline
      N Offline
      Nino_1
      wrote on last edited by
      #2

      Ned, Where is this file located that you are trying to delete? How are you accessing the file through FSO? If possible, please post your code. Tony

      M 1 Reply Last reply
      0
      • N Nino_1

        Ned, Where is this file located that you are trying to delete? How are you accessing the file through FSO? If possible, please post your code. Tony

        M Offline
        M Offline
        MrNed
        wrote on last edited by
        #3

        My asp code sits in C:\AC Projects\ISAS\Report Arch\RR which is setup as a virtual directory in IIS and the file to delete sits in C:\Temp\reports, both on the same machine. The relevant code is: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true

        N 1 Reply Last reply
        0
        • M MrNed

          My asp code sits in C:\AC Projects\ISAS\Report Arch\RR which is setup as a virtual directory in IIS and the file to delete sits in C:\Temp\reports, both on the same machine. The relevant code is: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true

          N Offline
          N Offline
          Nino_1
          wrote on last edited by
          #4

          Ned, Try changing the callout of FSO. From: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true To: Set fso = **Server.**CreateObject("Scripting.FileSystemObject") fso.DeleteFile "**C:\Temp\reports\**killme.txt", true HTH Tony

          M 1 Reply Last reply
          0
          • N Nino_1

            Ned, Try changing the callout of FSO. From: Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "killme.txt", true To: Set fso = **Server.**CreateObject("Scripting.FileSystemObject") fso.DeleteFile "**C:\Temp\reports\**killme.txt", true HTH Tony

            M Offline
            M Offline
            MrNed
            wrote on last edited by
            #5

            OK now i feel like the biggest idiot on the planet. I forgot to add the path! Ive been trying to figure this out all day! Thanks for finding my stupid mistake :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups