Page 1 of 2

iBin project (old post: Recycle Bin for Memory Cards)

Posted: Sat Aug 09, 2008 2:49 pm
by augustocroppo
Well, if is something which I really miss in my "portable" life is a recycle bin for memory cards, including USB thumb drives.

As you know, the Windows only put in the recycle bin files deleted in hard drive disks. In all other media devices the files are "really" deleted. I can recover the files using good portable software, but do not help if you use programs that keep writing information on the portable drive (and overwrite your lost file). Many users like me enjoy just clean the recycle bin after a determined time, just to be sure that anything important can be easily recovered if necessary.

And, like me, we are all human beings, not machines: so we can commit mistakes anytime, including deleting the wrong version of important archives.

Since my last code practising was Clipper in the 90’s (anyone remember that? Old times…), I do not have any idea how to start a project like this today.

The idea for this “Portable Recycle Bin” is:

- A small program which works like C.A.F.E. (by the way, a amazing software), which verify the source object and just execute the task if the source object match the verify process (this mean, verify if the file to be erase choose by the operator is in the same drive of the “Portable Recycle Bin”. If yes, the file is not erased, but moved to a special folder inside of the portable device).

- A tray icon is always present in the taskbar when the program is running. A double click in the icon opens the special folder that keeps all the files “erased”. A right click opens a menu, which you can choose empty the bin and open a dialog box to configure the settings of the software.

- The settings of the portable recycle bin include: empty automatically the bin determined by time event; choice of the size limit of the bin; turn on/off the option which determine if the program keep the path of the deleted file in a database or not (If on, this mean when the program move the “erased” file to the special folder, a special extension is added in the end of the filename. This extension is recognized by the program with a double click on the file, which automatically verify the database, retrieve the file path and open a dialog box to confirm the restoration. If no entry is found in the database, the confirm box is replaced by a dialog box to choose the destination of the file); turn on/off the use of dialog box to confirm the “erasing” procedure.

- The software recognize when the user try to deleted files inside of the special folder, leaving this process for the operational system.

- When the program starts, the database of “erased” files is re-indexed, which eliminate any missing entry when the file is not found in the special folder.

- If the special folder is almost full, the program opens a warning balloon.

What you think? Anyway to produce this program using a easy language code?

Posted: Sat Aug 09, 2008 3:07 pm
by m^(2)
Sounds interesting. And CAFE is a good starting point (CAFE MOD is probably a bit worse - has much more code which is unnecessary here).
If AHK is easy enough for you - you can try to modify it yourself. I can't think of any easier solution.

Re: Recycle Bin for Memory Cards

Posted: Sat Aug 09, 2008 6:48 pm
by appsuser
augustocroppo wrote:As you know, the Windows only put in the recycle bin files deleted in hard drive disks. In all other media devices the files are "really" deleted.
I think the first step is to better define some things in order to understand how Windows works.

I have a 250 GB portable drive that, when I delete files, these files are stored in the recycle bin and can be recovered. I have a 4 GB USB drive that does not store files in the recycle bin when deleted.

So the real problem is that Windows only puts in the recycle bin files deleted from devices (including portable devices) labeled as type "Local Disk". I think this is a hardware problem as I don't know of any software that can change a media's type from "Removable Disk" to "Local Disk". But if there was, your problem would be solved.

Interesting side note: Truecrypt encrypted virtual drives are considered type "Local Disk". So if you encrypted your USB drive, files deleted would be stored in the recycle bin and could be recovered (as long as the encrypted virtual drive is mounted, not sure if it only has to be on the original computer it was deleted on...)

Posted: Sat Aug 09, 2008 9:26 pm
by I am Baas

Posted: Sat Aug 09, 2008 11:03 pm
by m^(2)
Well, it's barely portable.

Posted: Sun Aug 10, 2008 2:02 am
by augustocroppo
m^(2) wrote:
Well, it's barely portable.
I agree. No better solution than a program that simulate the "recycle bin" for your thumb drive.

USB hard disks are considered "local drives"?

If yes, another good point to produce this software.

I do not want left deleted files in a public computer.

Posted: Sun Aug 10, 2008 4:00 pm
by FlightGeek
Something I learned using TrueCrypt is that if a volume is mounted as "removable", Windows will not create a "Recycle Bin". Conversely, if volume is mounted "fixed" then Windows creates not only a "Recycle Bin", but "System Restore" data as well.

So, one possible work-around is to put everything important in a TrueCrypt container and mount it as a "fixed" volume.

Of course there are simpler solutions like "Think before you click." and "Keep a backup of everything you care about." Personally, I don't let a portable device be the sole source of any more than a couple hour's work.


Posted: Sun Aug 10, 2008 6:39 pm
by appsuser
For how it works in Windows:

(copy whole address above, don't click on marked selection)

Posted: Sun Aug 17, 2008 8:08 am
by augustocroppo
appsuser wrote:For how it works in Windows:

(copy whole address above, don't click on marked selection)
Good resource. Thanks. I will apply this methodology to start this project.

The software will be coded with AutoHotkey language, which remember me the “ancient” Q-Basic.

Cheers to M^2 by the tip.

I came with these names to the software and I accept any suggestion of your guys:








Posted: Sun Aug 17, 2008 8:40 am
by augustocroppo
Has attended the dBase and flowchart class in the 90's help me now develop the project:



Posted: Sun Aug 31, 2008 10:38 am
by bro
I found this comment on
Come to help me.
Tuxmouraille - August 14, 2008 - 5:48am

Hello, my name is Lahire Biette aka Tuxmouraille.
I am one the original devs of C.A.F.E. And now the only one active.
You can get the latest version of it here:
I am developping other utilities, like a trash, a linker and other more ones.
I always need help.

Now with the latest realese you have: file association, context menu and hot keys.
All without changing something in the Windows registry.

Now I need some help to make configuration GUI.
I think that's what you need. I've just tried it,it works, it moves a file in trash dir on delete button, but it's on french...

I managed to set english language in ini file but I have problems with restoring folders from portable trash. Instead of restoring a folder with few files in it, it actually just created empty file with name same as directory (file without extension) and deleted those files from folder in trash dir. And t.r.a.s.h. only catch delete button in explorer.exe, I didn't find option to add additional programs like in c.a.f.e. I'm using nexusfile as file manager, which unfortunately does not move files in recycled dir on my portable hard disk, and explorer do,but I don't use explorer... So I really need somehow to enable t.r.a.s.h. to catch delete in nexusfile too (c.a.f.e. catch doubleclicks in freecommander and nexusfile when I set "fenetresAdditionnelles=ahk_class TfcForm, ahk_class TfMain.UnicodeClass" in cafe.ini).

I used t.r.a.s.h. from made on 2008-Aug-15.

Posted: Sun Jan 25, 2009 1:39 pm
by nicolleen

you might want to check this out, someone has taken the trouble to design a portable trash bin and it's working very well!

Removable Media Bit

Posted: Wed Nov 04, 2009 9:12 pm
by SmackEwe
I recall a discussion with someone at Lexar that some of their devices can be toggled between local disk and removable media

allusion ... 80198.html

a few minutes of web searching and voila ... -bit-tool/

cross manufacturer application


and some dated fun about controllers

social engineering pressure recipients

** I hope more people DEMAND UFD manufacturers add physical write protection switches to future products **


Posted: Tue Dec 22, 2009 2:57 pm
by augustocroppo
nicolleen wrote:hi,

you might want to check this out, someone has taken the trouble to design a portable trash bin and it's working very well!
Trouble? Poor Wraithdu... He/she just used few AutoIT pre-ready templates to assign a single function in the Del key.

I had a fun time developing my own version.

Thanks to m^(2)! One year and half ago this guy gave me the right direction: :idea: Autohotkey.

But I did expect an ex- girlfriend and a broken foot in the process... This both incidents mess up my mind and I left the portable bin project away from my focus. :twisted: I also started other project, the NetKeeper Suite, which was much more complex.

I finished the first version of the portable iBin today after three long weeks (with many splifs and drum and bass music). I am releasing it for download. This is my Christmas gift for all that live the portable life-style. Hope everyone enjoy it.


Download it all, share with all and give me all the feedback:



Open my webpage and look for the iBin project...


...or if can't keep waiting, just download here: ... wnload.htm

Re: iBin RELEASED! (old post: Recycle Bin for Memory Cards)

Posted: Wed Dec 23, 2009 12:43 am
by Lupo73
Interesting.. I'll try it soon :wink: