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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. how to delete one file in network share folder with .NET

how to delete one file in network share folder with .NET

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpsysadmintutorialquestion
3 Posts 3 Posters 2 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.
  • D Offline
    D Offline
    don7cry
    wrote on last edited by
    #1

    somebodys can help me do that? why i'm try delete it but occur an error "access denied" so that folder i had shared with full control for everyone thanks!!! Nho'c Ti`

    A J 2 Replies Last reply
    0
    • D don7cry

      somebodys can help me do that? why i'm try delete it but occur an error "access denied" so that folder i had shared with full control for everyone thanks!!! Nho'c Ti`

      A Offline
      A Offline
      Al Gardner
      wrote on last edited by
      #2

      Start by eliminating the possibilty that it is user related. Take a copy of the file and see if you can delete manually but using the same user that will the code runs as. If this works and the application still cannot delete another copy of the file, then it has to be code. We would then need to see some source to find out why it doesn't work. Al.

      1 Reply Last reply
      0
      • D don7cry

        somebodys can help me do that? why i'm try delete it but occur an error "access denied" so that folder i had shared with full control for everyone thanks!!! Nho'c Ti`

        J Offline
        J Offline
        jparsons
        wrote on last edited by
        #3

        I believe this has to do with default security measures on .NET assmeblies. Microsoft turns on some security by default and some security policy may restrict this operation. Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

        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