using windows recycle bin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chuck Anderson

    using windows recycle bin

    I know this is more of a Windows question, but I've Googled this and can
    not find an answer.

    Is there a PHP interface to the Windows recycle bin?

    I want to put files there instead of deleting them.

    Moving and deleting is not the same. For one, the recycle bin has path
    information.

    --
    *************** **************
    Chuck Anderson • Boulder, CO

    Integrity is obvious.
    The lack of it is common.
    *************** **************
  • kicken

    #2
    Re: using windows recycle bin

    Chuck Anderson wrote:[color=blue]
    > I know this is more of a Windows question, but I've Googled this and can
    > not find an answer.
    >
    > Is there a PHP interface to the Windows recycle bin?
    >
    > I want to put files there instead of deleting them.
    >
    > Moving and deleting is not the same. For one, the recycle bin has path
    > information.
    >[/color]

    I don't think PHP has a way to do it. You need to get into high-level
    windows-specific functions to put a file in the recycle bin. You might
    be able to pull it of using the win32 api extension for PHP. I have no
    way to test any code there since I'm not running a windows operating
    system though. Google for the SHFileOperation C function in the windows
    API. You should get some C or C++ examples, which you can probably get
    converted to PHP if the win32 api extension works.

    Comment

    • Daniel Tryba

      #3
      Re: using windows recycle bin

      Chuck Anderson <websiteaddress @seemy.sig> wrote:[color=blue]
      > Is there a PHP interface to the Windows recycle bin?[/color]

      Yes, thru the win32 api (or maybe COM / .net stuff). A creative search
      (like "filesystem object delete recycle") in your favorite searchengine
      should give you all the info to get started.

      BTW if you are stuck to that platform: MSDN is your "friend".

      Comment

      • Chuck Anderson

        #4
        Re: using windows recycle bin

        kicken wrote:
        [color=blue]
        >Chuck Anderson wrote:
        >
        >[color=green]
        >>I know this is more of a Windows question, but I've Googled this and can
        >>not find an answer.
        >>
        >>Is there a PHP interface to the Windows recycle bin?
        >>
        >>I want to put files there instead of deleting them.
        >>
        >>Moving and deleting is not the same. For one, the recycle bin has path
        >>information .
        >>
        >>
        >>[/color]
        >
        >I don't think PHP has a way to do it. You need to get into high-level
        >windows-specific functions to put a file in the recycle bin. You might
        >be able to pull it of using the win32 api extension for PHP. I have no
        >way to test any code there since I'm not running a windows operating
        >system though. Google for the SHFileOperation C function in the windows
        >API. You should get some C or C++ examples, which you can probably get
        >converted to PHP if the win32 api extension works.
        >
        >[/color]
        It almost looks like like it's more trouble than it's worth. I'll have
        to spend more time following up on that search one of these days.

        --
        *************** **************
        Chuck Anderson • Boulder, CO

        Integrity is obvious.
        The lack of it is common.
        *************** **************

        Comment

        Working...