Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temp Files trb*.tmp in c:\Windows\Temp folder 2

Status
Not open for further replies.

PcJanITor

IS-IT--Management
Mar 27, 2003
15
US
There are several pc's running Windows 95 in the office, and I've noticed that there are hundreds of trb*.tmp files that have zero K file size. I've deleted these, but what are they, and how are they being created? (The trb file will be created with random numbers/letters, example: trbB270.tmp).

Any help will be greatly appreciated.

Thanks
 
They're just temp files created by different apps...can be deleted with no cost/fear. Best to reboot and close every app before you go and delete any of them, just in case they're in use.
 
Also, you can put a line the autoexec.bat to delete them every time you boot. Like:
If exist c:\temp\*.tmp del c:\temp\*.tmp

Keeps the crap from piling up.

JON
 
Actually, I would remove all files in the temp folders, not just .tmp ones.
Change the line to read:
If exist c:\temp\*.* del c:\temp\*.* |y
I would also do this for Windows\temp thus:
If exist c:\windows\temp\*.* del c:\windows\temp\*.* |y
Adding the |y eliminates the prompt.
BE CAREFUL though. Some programs that put a partial install into the c:\windows\temp folder need that info to update things that require a restart during software install, and deleting them can cause the program install to fail. Cheers,
Jim
iamcan.gif
 
Thats very true Jim, on the same note those command lines i know will delete all files..but what about directories? *.* in my experience will not delete directories. what would have to change to accomplishes this?
 
OK, this get's slightly more complicated coding, but still only 5 lines in autoexec.

If exist c:\temp\*.* del c:\temp\*.* |y
rd c:\temp |y
If exist c:\windows\temp\*.* del c:\windows\temp\*.* |y
rd c:\windows\temp |y
md c:\temp

You need to recreate the c:\temp folder, as windows won't do it automatically.

Upon further thought, it may be simpler to do it thus (I haven't got a win9x machine to test it on, sorry):

deltree c:\temp |y
deltree c:\windows\temp |y
md c:\temp

You MAY have to add this line above the deltree c:\temp line:
path=c:\%windir%\command
Not sure if the "deltree" command is found in DOS before Windows starts, and this will avoid a "bad command" error. Cheers,
Jim
iamcan.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top