Remove file to recycle bin

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
KaReL
Experienced Solver
Experienced Solver
Posts: 78
Joined: Mon Aug 30, 2004 8:52 am
Contact:

Remove file to recycle bin

Post by KaReL » Wed Jan 09, 2008 9:19 am

Hi,


Has anyone some portable code for removing a file to the recycle bin (windows), Trash Can (linux) and Trash (Mac)?


Thanks!
wxWidgets: SVN/trunk
OS: WinXP/2 + Ubuntu + Mac 10.4.11
Compiler: VS2005 + GCC 4.2 + GCC 4.0.1
-----
home: http://www.salvania.be

User avatar
alchemist
Experienced Solver
Experienced Solver
Posts: 80
Joined: Tue Sep 04, 2007 6:03 pm
Location: Lembeek - Belgium
Contact:

Post by alchemist » Wed Jan 09, 2008 11:43 am

Hello,

For Linux, it will depend on the window manager (Gnome, Kde, XFCE, fvwm), I don't know if there is a standard method (even the recycle bin is named "~/Trash" of something like that.

PS: the uncle of my wife live at Esdoornplein ;)
Kind Regards,
Xavier Miller.
http://xaviermiller.be

Post Reply