1. "paper basket"

Hello all,

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?

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?
Can a DOS program, that is running under Windows 95+, also use the
"paper basket"?

Thanks in advance, and best regards,
   Juergen

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

new topic     » topic index » view message » categorize

2. Re: "paper basket"

Juergen Luethje wrote:

>
>Hello all,
>
>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?
>
>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?
>Can a DOS program, that is running under Windows 95+, also use the
>"paper basket"?
>
>Thanks in advance, and best regards,
>   Juergen
>
>  
>

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. I don't think it would work for a DOS program, 
however.

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

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

3. Re: "paper basket"

Juergen Luethje wrote:
> 
> 
> Hello all,
> 
> I'd like to write some routines, that delete files/directories by using
> the "paper basket".
>

Do you really mean a "paper basket"? Or should it be a "trash can"? What
you described is more like a trash can.
In the english version of WinNT I found a recycle bin. But you don't
want to recycle it. How about "nowhere" or "nirvana" or "black hole"?

Have a nice day, Rolf

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

4. Re: "paper basket"

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'. 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.

> 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.)

HTH,
Carl

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

5. Re: "paper basket"

r.schr at t-online.de wrote:

> Juergen Luethje wrote:
>> 
>> 
>> Hello all,
>> 
>> I'd like to write some routines, that delete files/directories by using
>> the "paper basket".
>>

> Do you really mean a "paper basket"? Or should it be a "trash can"? What
> you described is more like a trash can.
> In the english version of WinNT I found a recycle bin. But you don't
> want to recycle it. How about "nowhere" or "nirvana" or "black hole"?

Do you really mean a "black hole"? Or should it be a "white hole"?
How about "blue holes" or "red and green striped holes"?

> Have a nice day, Rolf

Regards,
   Juergen

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

6. Re: "paper basket"

On 10 Jun 2002, at 18:31, r.schr at t-online.de wrote:

> 
> Juergen Luethje wrote:
> > 
> > 
> > Hello all,
> > 
> > I'd like to write some routines, that delete files/directories by using
> > the "paper basket".
> >
> 
> Do you really mean a "paper basket"? Or should it be a "trash can"? What
> you described is more like a trash can.
> In the english version of WinNT I found a recycle bin. But you don't
> want to recycle it. How about "nowhere" or "nirvana" or "black hole"?

Well, steriotypically, it's paper that gets reycled first as recyling moves into
the public consciencness, altho i can think of other things to recycle, or not 
use at all, before paper. This is like the word "discrimination",, being 
discriminatory is a good thing, acting irrationally and negatively based on 
personal and unsupportable biases is a bad thing. But anyhow, Juergen, 
what are the German words you are translating to "paper basket"?

Kat

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

7. Re: "paper basket"

Juergen Luethje wrote:
> ...
> Do you really mean a "black hole"? Or should it be a "white hole"?
> How about "blue holes" or "red and green striped holes"?
> 

Juergen,
it must be a black hole for it ensures that all information you put in
will be completely destroyed. So NOTHING will be returned (except, after
Hawking, some 'black body' radiation). A white (or any kind of colored)
hole returns some specially light. A lot of information would be the
"red and green striped hole"!
To speak in terms of programming: a black hole relates to a program
which is able to clear your disk so that any kind of CIA (or similar
institutions) would only 'see' some random noise.

Have a nice day, Rolf

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

8. Re: "paper basket"

hi Rolf,
black-hole issue might have other implications as well.
Hawkin is brilliant, but AFAIK not in an artistic way.
Item could be discussed on personal Email between us.
Have out of the box idea(s) about it.
a@t

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

9. Re: "paper basket"

Rolf wrote:
> Do you really mean a "paper basket"? Or should it be a "trash can"? What
> you described is more like a trash can.
> In the english version of WinNT I found a recycle bin. But you don't
> want to recycle it. How about "nowhere" or "nirvana" or "black hole"?

"Your hard drive went to nirvana, you can reach your data via
deep meditation" smile

Actually, the drive space is "recycled"-files aren't deleted, but rewritten.

    Martin

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

Search



Quick Links

User menu

Not signed in.

Misc Menu