473,408 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Jul 17 '05 #1
3 1800
Chuck Anderson wrote:
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.


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.
Jul 17 '05 #2
Chuck Anderson <we************@seemy.sig> wrote:
Is there a PHP interface to the Windows recycle bin?


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".

Jul 17 '05 #3
kicken wrote:
Chuck Anderson wrote:

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.


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.

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
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Frank Meng | last post by:
Hi. I wrote a program to get the directory of "Recycle Bin" with SHGetSpecialFolderLocation . It works for "Recent", "SendTo", etc. but it doesn't work for "Recycle Bin". At...
5
by: Gene Vital | last post by:
Can someone point me in the right direction on how to send files to the Recyle Bin using C#.
14
by: Just Me | last post by:
Can anyone fix the code below? I need to set pTo to NULL and pFrom to a fullfilepath followed by two NULLs Below Filename is a string With FileOperation ..wFunc = FO_DELETE ..pFrom =...
5
by: johnb41 | last post by:
I searched and found a way (via API) t0 add a deleted file to the recycle bin. (Thanks Ken Tucker! :)) But I was wondering if VB.NET 2005 (framework 2.0) has a non-api solution. (Note: i...
3
by: Bragadiru | last post by:
Hi, I can publish My Asp.NET 2.0 web service, through a WebSetup project, on a Windows XP Pro Sp2 and it works fine. When I'm trying to publish it on a Windows 2003 Server IIS 6 => when I can...
1
by: bhasky | last post by:
We have two production server, Prod server 1 giving error Session Timout before 90min where it has been set 90 in global.asa Differences Prod Ser 1 : Windows 2003, No Service Pack Installed...
10
by: =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= | last post by:
This has been working perfectly for months. Since we switched from ASP.NET 1.1 to 2.0, we have constant and sporadic issues with updating our applications. Touching the web.config works about...
2
by: Kevin D. Smith | last post by:
I would like to move files and directories to the Recycle Bin on Windows from Python. I have found some older articles describing how to do this, but they require additional packages to be...
4
by: Alex | last post by:
Hello, This is a follow-up to my earlier post about having issues with our application pool recycling. We currently use Session State InProc, but if I were to choose to move the existing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.