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. General Programming
  3. .NET (Core and Framework)
  4. Delete file without sending to recyclebin

Delete file without sending to recyclebin

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
8 Posts 5 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.
  • Y Offline
    Y Offline
    Ylno
    wrote on last edited by
    #1

    Hello All, Is there a way to do this? Or if not is there a way to force the recyclebin to empty it's self? Thanks.. is you have code..doesn't matter which language

    D V 2 Replies Last reply
    0
    • Y Ylno

      Hello All, Is there a way to do this? Or if not is there a way to force the recyclebin to empty it's self? Thanks.. is you have code..doesn't matter which language

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Have you tried holding down the Shift key when you hit Delete?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      G 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Have you tried holding down the Shift key when you hit Delete?

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        I think he meant it how to do it programmatically

        #region signature my articles #endregion

        D 1 Reply Last reply
        0
        • G Giorgi Dalakishvili

          I think he meant it how to do it programmatically

          #region signature my articles #endregion

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Then he better be specific about it. Besides, when my code delete's a file, it doesn't end up in the RecycleBin. That's a function of the Shell, not the file system.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          Y 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Then he better be specific about it. Besides, when my code delete's a file, it doesn't end up in the RecycleBin. That's a function of the Shell, not the file system.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            Y Offline
            Y Offline
            Ylno
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            Then he better be specific about it.

            This message board is really funny. You can easily get attacked for nothing. Sorry Dave perhaps next time i will post my questions on a board that's for programming. I really messed up. Indeed i did mean programatically. At the moment when i delete a file it ends up in the recycle bin. is there a way to empty the recycle bin programatically ?

            D P 2 Replies Last reply
            0
            • Y Ylno

              Dave Kreskowiak wrote:

              Then he better be specific about it.

              This message board is really funny. You can easily get attacked for nothing. Sorry Dave perhaps next time i will post my questions on a board that's for programming. I really messed up. Indeed i did mean programatically. At the moment when i delete a file it ends up in the recycle bin. is there a way to empty the recycle bin programatically ?

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              How are you deleting the file?? Like I said, the file ending up in the RecycleBin is a function of the Shell, not the file system.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              1 Reply Last reply
              0
              • Y Ylno

                Dave Kreskowiak wrote:

                Then he better be specific about it.

                This message board is really funny. You can easily get attacked for nothing. Sorry Dave perhaps next time i will post my questions on a board that's for programming. I really messed up. Indeed i did mean programatically. At the moment when i delete a file it ends up in the recycle bin. is there a way to empty the recycle bin programatically ?

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                Ylno wrote:

                You can easily get attacked for nothing.

                Dave wasn't attacking you, just suggesting you be a bit more specific with your question. It happens alot on these forums and if someone isn't being specific enough, they will be called upon about it. Being specific helps narrow the problem down :)

                "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                1 Reply Last reply
                0
                • Y Ylno

                  Hello All, Is there a way to do this? Or if not is there a way to force the recyclebin to empty it's self? Thanks.. is you have code..doesn't matter which language

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #8

                  http://www.discussweb.com/c-programming/3238-empty-recycle-bin-c.html[^] SHEmptyRecycleBin (PInvoke) http://msdn2.microsoft.com/en-us/library/ms647739.aspx[^]

                  Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                  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