Empty Recycle Bin

  • Thread starter Thread starter Alex Kraemer
  • Start date Start date
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
 
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?
 
Dear Alex,

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

Thankx.
 
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
 
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
 
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.
 
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?
 
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
 
Back
Top