473,378 Members | 1,469 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,378 software developers and data experts.

Recycle Bin - send and restore file

Hi

I've tested a code by Ken Tucker to send a file to recycle bin
(SHFileOperation shell function).
The only modification was to include:
Private Const FOF_NOCONFIRMATION = &H10
And add it to the fFlags attr. of SHFILEOPSTRUCT

This works well on my local machine (win2k .NET 1.1). I have also tried
to run the similar code over a webservice (webmethod with string
parameter of the file path) on the local machine. This method deletes
the file permanently and does not send it to the recycle bin. I used
several users with different user permissions, but the result was all
the same. any ideas...
I also look for a vb.net code for restoring files from the recycle bin.

Thanks a lot for any help!

- eyal

Dec 18 '06 #1
0 1217

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

Similar topics

1
by: Ben Bloom | last post by:
I want to send some files to the recycle bin after I'm done using them. I'd rather not delete them or make my own aging scheme. How do I go about this? I haven't been able to find a C# example...
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#.
1
by: Dinesh Jain | last post by:
Hi all, File.Delete(fileName) causes file to be deleted permanently. How to send it to Recycle bin? Please help, Thanks in advance, -Regards, Dinesh
2
by: | last post by:
Hello, I've read a lot of great threads by Ken Tucker and Herfried Wagner on using the SHFILEOPSTRUCT to send a file to the recycle bin. Is there a way to do this with a directory/folder as...
0
by: Steve | last post by:
I have figured out how to send a file to the Recycle Bin using VB.NET. What I'd like to do is be able to scan the files in the Recycle Bin and find those that pertain to my app (I have my own...
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...
0
by: eyal | last post by:
Hello, I use the SHFileOperation API call with FO_DELETE and FOF_ALLOWUNDO flags to send a file to the recycle bin(VB.NET). In some cases I may need to restore a specific file. I suppose this...
3
by: amocksun | last post by:
Hi, this is my first post on here, and I am am here because I seriously need some help with my Vista. My problem is I accidentally deleted nearly all my save files for my favorite game, about 30...
2
by: =?Utf-8?B?VVNBT3o=?= | last post by:
I am using Windows Vista Ultimate (x86). I accidently deleted my Desktop Recycle Bin. I restored it (Control Panel/Personalise/Change Desktop Icons). I clicked on the Recycle Bin (Full) icon...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.