D
Dave Horne
Is there a way to automatically delete the contents of the Windows\Temp dir
when shutting down the computer?
when shutting down the computer?
Dave Horne said:Is there a way to automatically delete the contents of the Windows\Temp
dir when shutting down the computer?
Dave Horne said:Mike, what I was looking for was an automatic deleting of files in the
Temp
dir upon shutting down. I looked under Help and Support and was given
instructions on how to manually delete files using Disk Cleanup or IE \
General \ Browsing history. I was wondering if there is a way for me to
have the contents of that Temp dir emptied on shutdown. Under older
versions of Windows we could add a line to the autoexec.bat to perform
tasks
like this.
Thanks, DH
Dave Horne said:Mike, what I was looking for was an automatic deleting of files in the
Temp
dir upon shutting down. I looked under Help and Support and was given
instructions on how to manually delete files using Disk Cleanup or IE \
General \ Browsing history. I was wondering if there is a way for me to
have the contents of that Temp dir emptied on shutdown. Under older
versions of Windows we could add a line to the autoexec.bat to perform
tasks
like this.
Thanks, DH
Mike, what I was looking for was an automatic deleting of files in the Temp
dir upon shutting down. I looked under Help and Support and was given
instructions on how to manually delete files using Disk Cleanup or IE \
General \ Browsing history. I was wondering if there is a way for me to
have the contents of that Temp dir emptied on shutdown. Under older
versions of Windows we could add a line to the autoexec.bat to perform tasks
like this.
Thanks, DH
Mike Brannigan said:Yes using a local group policy assign a machine shutdown script to remove
the contents of the drive or do anything else you want as the machine
shuts down.
Open the Help and Support and search for local group policy
Hi Dave,
I still use a batch file, but put it into the startup folder. It's not
a good idea (IMO) to clear the folder on shutdown, as files may be
placed there during an install that are needed on restart. It's safer
to clear it on startup as the Startup folder is the last thing to get
processed on boot.
--
Terry
***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
Richard said:You never, ever, want to do that. You will break many application installs
by doing so.
Many applications finish their install upon a reboot, whether they tell you
to reboot - or not. Guess where the files needed to complete the
installation are placed?
Chris Barnes said:Fair enough.
But continuing the original thread - is there then a way to "remove all
files in the ~temp directory that are older than "x days"?
Fair enough.
But continuing the original thread - is there then a way to "remove all
files in the ~temp directory that are older than "x days"?
Fair enough.
But continuing the original thread - is there then a way to "remove all
files in the ~temp directory that are older than "x days"?
<snip>Richie doesn't have a clue. He's proved that over and over. A
temporary file is just that... temporary and can be safely delted ONCE
there is no longer any use for it. In fact if any temp file is in use,
you can't delete it, Windows won't let you, saying the file is in use.
Use CCleaner and configure the advanced options. By default, temp files are
kept for 48 hours. You can also set CCleaner to empty the temp folders on
startup, leaving any files that may be necessary for that 48 hour period.
I can not begin to tell you how many programs and small applications I have
installed that do not require a reboot. Yet if you do reboot you may see a
message to wait while the system is being configured. It is the temp files
that are being accessed to use during the configuration.
Hence, do not empty the temp folders on reboot/shutdown.