I would like to delete all the contents in Recycling bin through VBScript.

Since i have no clue where recycling bin is located on filesystem,
I was looking into "GetSpecialFolder" of FileSystemObject but there were
only three constants that were of no help.

I'd appreciate it if someone could guide me on how I could delete contents
in Recyling bin.

Re: Accessing Recycling Bin by Torgeir

Torgeir
Fri Jan 28 14:08:18 CST 2005

dance2die wrote:

> I would like to delete all the contents in Recycling bin through VBScript.
>
> Since i have no clue where recycling bin is located on filesystem,
> I was looking into "GetSpecialFolder" of FileSystemObject but there were
> only three constants that were of no help.
>
> I'd appreciate it if someone could guide me on how I could delete contents
> in Recyling bin.
Hi

1)
Using the Shell.Application object from VBScript:
http://groups.google.co.uk/groups?selm=3CAC1E44.9E9CD575%40hydro.com


2)
The free command line tool EmptyRecycleBin.exe should help you
here as well (using the /Q command line switch).

Download it from
http://www.optimumx.com/download/



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: Accessing Recycling Bin by dance2die

dance2die
Fri Jan 28 14:51:07 CST 2005

Thanks a bunch there, Mr. Bakken.
It was quite helpful.

But
may I ask how you found those information?
The reason I was posting was because I was too frusted after googling for
about 3 or 4 hours...

I wonder if you could share some of the tips on how to "search" around :)
That way less people will posting redudant posts...

"Torgeir Bakken (MVP)" wrote:

> dance2die wrote:
>
> > I would like to delete all the contents in Recycling bin through VBScript.
> >
> > Since i have no clue where recycling bin is located on filesystem,
> > I was looking into "GetSpecialFolder" of FileSystemObject but there were
> > only three constants that were of no help.
> >
> > I'd appreciate it if someone could guide me on how I could delete contents
> > in Recyling bin.
> Hi
>
> 1)
> Using the Shell.Application object from VBScript:
> http://groups.google.co.uk/groups?selm=3CAC1E44.9E9CD575%40hydro.com
>
>
> 2)
> The free command line tool EmptyRecycleBin.exe should help you
> here as well (using the /Q command line switch).
>
> Download it from
> http://www.optimumx.com/download/
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx
>

Re: Accessing Recycling Bin by Torgeir

Torgeir
Fri Jan 28 15:04:18 CST 2005

dance2die wrote:

> Thanks a bunch there, Mr. Bakken.
> It was quite helpful.
>
> But
> may I ask how you found those information?
> The reason I was posting was because I was too frusted after googling for
> about 3 or 4 hours...
>
> I wonder if you could share some of the tips on how to "search" around :)
> That way less people will posting redudant posts...
Hi

Use Google newsgroup search (in advanced mode):

http://groups.google.co.uk/advanced_group_search


Select "Sort by date" (if it looks like there is little relevant on the
first couple of pages, switch back to "Sort by relevance")

Fill in *.scripting in the "Return only messages from the newsgroup"
field.

Fill in "recycle bin" (without the quotes) in the "Find messages with
all of the words" field.

Be sure to use the correct "computer language" wording, e.g.
"recycling bin" as you wrote it, is not what it is called in Windows.

Here is the resulting search:

http://groups.google.co.uk/groups?as_q=recycle%20bin&safe=images&as_ugroup=*.scripting&as_scoring=d&lr=&hl=en



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: Accessing Recycling Bin by dance2die

dance2die
Sat Jan 29 15:13:02 CST 2005

wow. Google Newsgroup does have some good functionalities when it comes to
searching through certain topics...

I have been simply browsing this newsgroup through MS Technet website but
the search functionality didn't return much...

Thank you for the tips again.

"Torgeir Bakken (MVP)" wrote:

> dance2die wrote:
>
> > Thanks a bunch there, Mr. Bakken.
> > It was quite helpful.
> >
> > But
> > may I ask how you found those information?
> > The reason I was posting was because I was too frusted after googling for
> > about 3 or 4 hours...
> >
> > I wonder if you could share some of the tips on how to "search" around :)
> > That way less people will posting redudant posts...
> Hi
>
> Use Google newsgroup search (in advanced mode):
>
> http://groups.google.co.uk/advanced_group_search
>
>
> Select "Sort by date" (if it looks like there is little relevant on the
> first couple of pages, switch back to "Sort by relevance")
>
> Fill in *.scripting in the "Return only messages from the newsgroup"
> field.
>
> Fill in "recycle bin" (without the quotes) in the "Find messages with
> all of the words" field.
>
> Be sure to use the correct "computer language" wording, e.g.
> "recycling bin" as you wrote it, is not what it is called in Windows.
>
> Here is the resulting search:
>
> http://groups.google.co.uk/groups?as_q=recycle%20bin&safe=images&as_ugroup=*.scripting&as_scoring=d&lr=&hl=en
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scriptcenter/default.mspx
>