473,624 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1809
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
6439
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 http://www.dot.net.nz/codesamples.browseforfolder.aspx , and other places, the folder Ids are: /// /// Enum of CSIDLs identifying standard shell folders.
5
6478
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
4129
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 = FileName??
5
1634
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 think it's crazy that you have to manually add code to add a file to the recycle bin. You'd think the opposite would be true. i.e. deleting a file and skipping the recycle bin would need special code.)
3
6254
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 access the web service but it is closed after few seconds (I know 'cause I have in global.asax.cs Application_Start/End Trace.WriteLine(DateTime.Now());)
1
1646
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 Prod Ser 2 : Windows 2003, Service Pack Installed Cal you please help me out how to resolve the issue without installing service pack in prod server 1 and is that really problem without service pack 1.
10
7575
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 40% of the time to cause an AppDomain to reload and flush all assemblies. Sometimes it works perfectly, but other times some Assemblies are not reloaded into the AppDomain, even after multiple web.config file touches. Sometimes multiple versions...
2
4266
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 installed. I'm working on a plugin for an existing project and only have the standard library to work with. Is there a way to use the Recycle Bin using standard Python? -- Kevin D. Smith
4
2151
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 application to SQL instead, would the only change in the application be the SessionState setting within web.config? I know I'd also need to setup our MS SQL database to handle sessions (detailed in MS Article 317604), but outside of this, is there...
0
8242
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8629
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1488
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.