Windowc temp directory

  • Thread starter Thread starter André Landreau
  • Start date Start date
A

André Landreau

Hello to all,

My laptop runs Windows Vista Ultimate.
Looking at the c:\windows\temp directory it lists 1060 items, some files,
some subdirectories. Lot of 0Kbits files etc ....
Under Win98 I would delete all that junk without problem. Can that be done
safely under Vista ? Thanks for advise.

André M. Landreau
 
André Landreau said:
Hello to all,

My laptop runs Windows Vista Ultimate.
Looking at the c:\windows\temp directory it lists 1060 items, some
files, some subdirectories. Lot of 0Kbits files etc ....
Under Win98 I would delete all that junk without problem. Can that be
done safely under Vista ? Thanks for advise.

André M. Landreau


Yes, they can be safely eliminated. Like earlier versions of Windows,
Vista won't let you delete a file that actually in use at the time of
the deletion (mentioned in case you've other programs running at the time).


--

Bruce Chambers

Help us help you:


They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
Hello to all,

My laptop runs Windows Vista Ultimate.
Looking at the c:\windows\temp directory it lists 1060 items, some files,
some subdirectories. Lot of 0Kbits files etc ....
Under Win98 I would delete all that junk without problem. Can that be done
safely under Vista ? Thanks for advise.


Yes, they can, and should be, deleted periodically.

The temp folder provides workspace for programs. Programs can create
temporary files there for their own temporary use. Each program should
delete all its temporary files when it closes, but for various reasons
it doesn't always happen (for example, if the program crashes, it
never gets to do this). That's why it's a good idea to periodically
clean out anything left there.

Also note that there are some program installations which work in two
steps. The first step concludes by writing temporary files and
rebooting. The second step starts automatically after rebooting and
needs to find those files there (and then deletes them when it's
done).

Other than doing it automatically when rebooting (that would interfere
with installations like the kind I described), it's always safe to
delete the contents of the temp folder. Because it's safe to delete
any temp files that aren't open and in use by an application, and
since Windows won't let you delete open files, it's safe to (try to)
delete them at any time. If any fail to delete because they're open,
they'll either be deleted automatically when the app using them
closes, or you'll get them the next time you delete manually.
 
Yes, they can, and should be, deleted periodically.

The temp folder provides workspace for programs. Programs can create
temporary files there for their own temporary use. Each program should
delete all its temporary files when it closes, but for various reasons
it doesn't always happen (for example, if the program crashes, it
never gets to do this). That's why it's a good idea to periodically
clean out anything left there.

Also note that there are some program installations which work in two
steps. The first step concludes by writing temporary files and
rebooting. The second step starts automatically after rebooting and
needs to find those files there (and then deletes them when it's
done).

Other than doing it automatically when rebooting (that would interfere
with installations like the kind I described), it's always safe to
delete the contents of the temp folder. Because it's safe to delete
any temp files that aren't open and in use by an application, and
since Windows won't let you delete open files, it's safe to (try to)
delete them at any time. If any fail to delete because they're open,
they'll either be deleted automatically when the app using them
closes, or you'll get them the next time you delete manually.

Ken, I have a large number of log files in my temp directory that will
not delete through disk cleanup. They are "lpksetup-<date>.log. Any
ideas what's going on with this?

Vista home premium (32 bit)
3 gigs ram
 
Ken, I have a large number of log files in my temp directory that will
not delete through disk cleanup. They are "lpksetup-<date>.log. Any
ideas what's going on with this?


Sorry, I'm not familiar with those.
 
André Landreau said:
Hello to all,

My laptop runs Windows Vista Ultimate.
Looking at the c:\windows\temp directory it lists 1060 items, some
files, some subdirectories. Lot of 0Kbits files etc ....
Under Win98 I would delete all that junk without problem. Can that be
done safely under Vista ? Thanks for advise.

André M. Landreau

When it comes to a directory called "Temp", everything is subject to
deletion at any time. I usually follow the following (no pun intended)
process:

1) Mark all files & folders and delete. Windows will tell you when a
file is in use and can't be deleted.
2) Reboot the machine
3) if no problems in a day or two, I empty the Recycle Bin.

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
 
Sorry, I'm not familiar with those.


Language Pack installation utility?

http://technet2.microsoft.com/Windo...746f-45ab-940a-543d414610a71033.mspx?mfr=true


--

Bruce Chambers

Help us help you:


They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
Dave said:
Ken, I have a large number of log files in my temp directory that will
not delete through disk cleanup. They are "lpksetup-<date>.log. Any
ideas what's going on with this?

Vista home premium (32 bit)
3 gigs ram

As Bruce indicated, they are generated by lpksetup.exe. IIRC correctly,
I stopped it by going to Task Scheduler and disabling or deleting the
scheduled task. I can't remember more than that, sorry.

I'm kind of surprised you can't delete them. IIRC, I was able to delete
them at will.. Try stopping that task and rebooting. If no luck deleting
them, try booting into Safe Mode and see if you can do it.

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
 
Hank said:
As Bruce indicated, they are generated by lpksetup.exe. IIRC correctly,
I stopped it by going to Task Scheduler and disabling or deleting the
scheduled task. I can't remember more than that, sorry.

I'm kind of surprised you can't delete them. IIRC, I was able to delete
them at will.. Try stopping that task and rebooting. If no luck deleting
them, try booting into Safe Mode and see if you can do it.

Thanks Hank. I deleted them manually and the reason I inquired about it
is that nothing in that temp folder would delete through disk cleanup.
The task scheduler shows it as "LPRemove", a system task that is
scheduled to run at each bootup. What are the consequences of disabling
that task? Odd, the task was scheduled to run once on 5/27/07 (the day I
got the computer), but is now scheduled to run at each boot session.
 
Hi all,

Thanks to all of You for yout comments they were really usefull.
André M. Landreau
 
Dave said:
Thanks Hank. I deleted them manually and the reason I inquired about it
is that nothing in that temp folder would delete through disk cleanup.
The task scheduler shows it as "LPRemove", a system task that is
scheduled to run at each bootup. What are the consequences of disabling
that task? Odd, the task was scheduled to run once on 5/27/07 (the day I
got the computer), but is now scheduled to run at each boot session.

I disabled mine a couple of months ago and I've yet to see any
consequences...

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
 
Back
Top