1. Recycle Bin (was: "paper basket")

Hello Carl,

you wrote:

> Juergen Luethje wrote:

>> I'd like to write some routines, that delete files/directories by using
>> the "paper basket".
>>
>> "paper basket" is the English translation of the German name, but is
>> this really the correct English name? How is this thing called under
>> Windows, and how under Linux?

> It sounds like you're talking about the 'Recycle Bin'.

Yup, that's it. smile  'Recycle Bin' isn't in my dictionary.

> As for the relavent API, I wouldn't know about that. :(

>> With the correct name, maybe I can find the proper Windows API-function.
>> Or can anyone please tell me, how to do it? Under windows, the "paper
>> basket" is a special directory. Maybe I just have to move the files to
>> this directory?

> I think there's something else Windows does other than moving a file to one
> of the hidden recycler folders on your machine. There's some kind of
> Registry change and/or an alteration to a hidden config file within the
> Recycle Bin folder(s).

> Note that for every hard disk partition on your machine, there's a hidden
> folder called 'Recycled' or 'Recycler', and files deleted from a particular
> partition go to that particular Recycler. Windows blurs the fact that the
> nearly-deleted files can be in different folders on the disk by listing them
> all together in the Recycle Bin.

> There's also an added complication that the Windows NT based OSs use a
> different method to Windows 9x for handling the deleted files and separate
> 'Recycler' folders.

>> Can a DOS program, that is running under Windows 95+, also use the
>> "paper basket"?

> If you make a console app for use with 'exw' you should have access to the
> internals of Windows at an API level, but if you're using plain old 'ex'
> you'll probably have to manually code all of the things a Windows API would
> do.

> ** Under Linux, it all depends heavily on what X Window Manager you use,
> and/or the File Manager you use within that. IIRC Gnome, KDE and OpenWindows
> all use different places to put their Recyclers.

Carl, thank you for this comprehensive explanation!

>> Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x].

> Any relation to 1-800-314-1592 ext. 6536? (They sell pie. Yum.)

Unfortunately no relation ...

> HTH,
> Carl

Best regards,
   Juergen

new topic     » topic index » view message » categorize

2. Recycle Bin (was: "paper basket")

Hello Jeff,

you wrote:

<snip>
> Under Windows, I think you can use SHFileOperation. I haven't tried it,
> but from the documentation it looks promising. See 
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/reference/functions/shfileoperation.asp
>
> for more information.

Yup, that's what I've been looking for.

> I don't think it would work for a DOS program, however.

I just searched Ralf Brown's Interrupt List for "Recycle Bin", and
didn't find an entry.

> Under Linux, there isn't a standard "Recycle Bin." Some window managers, 
> such as GNOME (www.gnome.org) and KDE (www.kde.org) do have something 
> like it, but I haven't tried using it in any of my programs.

> Jeff

Thank you!

Best regards,
   Juergen

new topic     » goto parent     » topic index » view message » categorize

3. Recycle Bin (was: "paper basket")

Hello Kat,

you wrote:

<snip>
> But anyhow, Juergen,
> what are the German words you are translating to "paper basket"?

The German word is "Papierkorb". In my dictionary is:
------------------------------------------------>8--
Pa|pier|korb m (waste-) paper basket or bin
------------------------------------------------>8--

Now I now, the English word I was looking for, is "Recycle Bin".
This expression isn't in my dictionary (Collins, about 2000 pages) sad

> Kat

Best regards,
   Juergen

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu