Empty Recycle Bin

A

Alex Kraemer

Hello
Every night runs a batchfile that have to delete a lot of temporary files.
All these files are in the recycle bin after the batch has completed.
Also the system does a reboot with the same batch.
Is there any way to empty the recycle bin during shutdown or restart ?? I
don't want to activate the option that files will be removed immediately
when deleted.

Thanks for inputs
Cheers
Alex
 
P

Pegasus \(MVP\)

Alex Kraemer said:
Hello
Every night runs a batchfile that have to delete a lot of temporary files.
All these files are in the recycle bin after the batch has completed.
Also the system does a reboot with the same batch.
Is there any way to empty the recycle bin during shutdown or restart ?? I
don't want to activate the option that files will be removed immediately
when deleted.

Thanks for inputs
Cheers
Alex

What is the exact command you use in the batch file to delete
the temporary files?
 
G

Guest

Dear Alex,

Pls help me in how to create a batch file to restart my system. I am using
Windows 2000 Prof.

Thankx.
 
G

Guest

Dear Mr. Alex,

Pls help me how to create a batch file to restart the system on a schedule
run. I am using Windows 2000 Prof.

Thankx.
Athar
 
A

Alex Kraemer

Hallo

Command i use to delete: rmdir c:\winnt\Temp_old /s /q
Using rmdir because there are about 5000 files in the folder. (del or erase
takes to long)
first doing a rename of the folder, then create a newone with the same name
and then delete the renamed folder.

Thanks
Alex
 
P

Pegasus \(MVP\)

I always thought that when I delete something from the
Command Prompt then it does NOT get transferred
to the Recycle Bin. To confirm it I issued these commands:

xcopy c:\temp\*.* c:\test\
rd /s /q c:\test

I then checked the Recycle Bin. It was empty, as
expected. My experience is therefore at variance
with yours. I suggest you run the same experiment.
 
A

Alex Kraemer

Hello
Thanks for your answer.
Everything works now properly.

Thanks again
Alex
 
P

Pegasus \(MVP\)

That's nice, but please explain why your temp files
ended up in the recycle bin. Were they different
files that had nothing to do with your batch file?
 
A

Alex Kraemer

Maybe i was a little bit to fast with my posting.
Everything works now fine, think that the files in the recycle bin were
allready there from my test. (did some tests without the batch)

Cheers
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Recycle Bin & Flash Drives 7
Recycle bin 5
recycle bin weirdness! 2
Where is Recycle Bin? 9
Recycle Bin not working 2
Recycle Bin 6
Recycle bin icon no longer works 4
Windows 7 Recycle Bins Corrupt - No File List 1

Top