Jump to content

deleting contents of temp folder


Tiger

Recommended Posts

I have files in the temp folder ~DFEAFC.tmp; Perflib_Perfdata_21c and cannot delete them because programs are open which apparently need them.

what are the programs using the files?

how do i stop the programs so that i can delete the files?

ps i am unable to totally clear the web/client publisher tempory files using disk cleanup 40 kb always remains undeleted!

thanks in advance

Link to comment
Share on other sites


useful bit of software thank you! :) ~DFEAFC.tmp was outlook mail count file.

refering back to skyfrog post referenced web page and advice given therein:

The best way to remove these files is to add a command in a logon script:

del /q %SystemRoot%\System32\Perflib_Perfdata*.dat

please could you explain (in how to dummy terms) how to do the above.

many thanks in advance

Link to comment
Share on other sites

well those files will be created all the time

best way to get rid of them is to get rid of the system monitor

which is by:

type services.msc in run then

find Performance Logs and Alerts

right click on it

then properties

then startup type manual/disable

I hope that answers your question..

I had configured lots of inf files when installing xp. I don't remember if that services is set to automatic upon unmodified install of xp but when i installed the service was on manual and i don't even have a perflib*.dat file...

and I forgot to answer the question :)

to apply that line of code

save it to a notepad file

then go to save as and save it as filename.bat or filename.cmd

then easiest way to run this would be putting it in

start menu /start up

assuming u saved the file as lets say "perflib_del.cmd"

go here C:\Documents and Settings\All Users\Start Menu\Programs\Startup

and copy/move the file in there...

or better yet just copy and paste this code to a notepad and save as create.cmd

echo del /q %SystemRoot%\System32\Perflib_Perfdata*.dat>>del_perflib.cmd
move "del_perflib.cmd" "%allusersprofile%\Start Menu\Programs\Startup\"

echo Windows Registry Editor Version 5.00>>disable_perflib.reg
echo.>>disable_perflib.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysmonLog]>>disable_perflib.reg
echo "Start"=dword:00000003>>disable_perflib.reg

regedit /s disable_perflib.reg
del create.cmd

Edited by XtremeMaC
Link to comment
Share on other sites

thanks extrememac i guess you'll have pm just sent sorry i read your reply first before looking here:

one last point (together with the pm requested confirmation) the create.cmd you have kindly written - would you also apply this to:

gpedit.msc start menu /start

or computer management local user / properties profile / profile path and also logon script?

where there is seemingly two separte methods for a script function its confusing to know which to use and why!

(edit) have disabled as you advised but just rebooted and the file has been regenerated!!

many thanks

ps you might be interested: http://support.microsoft.com/default.aspx?...85798#appliesto

Link to comment
Share on other sites

1st of all instead of pm'ing me u'd rather post it here

u'll get quicker and clearer answers... and I don't know why u prefered pm'ing but no one laughs and think that u're stupid or something. so post here.

and i think it'd make more sense since this is a public forum.. I might not have the answer, if u pm me only i'll see it so if u want better answers post it here :)

i had a screen shot that'll explain this but i'm having internet problems therefore can't access my web server.

yes u can apply it to the logon script under user conf.

cursor flashing part okay i just understood what u meant by that

go to gpedit and add a script

there under script name enter the path to the .cmd file

or simply browse to it.

no need for parameters.

i just have 1 user so i don't know if that applies to all users but u can add this to computer configuration instead of user conf.

hope this solves it

that website doesn't help me :rolleyes: its old its for win2000. and doesn't state anything but saying there are perfdata*.dat files....

Link to comment
Share on other sites

:) extrememac thanks for your advice much appreciated!! i'm also trying to understand the difference between the various methods of writing a script and to determine which method to use for a given task and wonder whether i've got this right?

gpedit.msc start menu/start = a computer configuration

compmgmt.msc local user/properties profile/profile path = a user configuration

are you saying i don't actually need to do either option above but just copy the file create.cmd

to C:\Documents and Settings\All Users\Start Menu\Programs\Startup and this will achieve the same result?

whats the difference between .bat and .cmd files if i can save the file as either or and the same function is achieved?

finally back to the Perflib_Perfdata_21c file done all you have advised but upon reboot the file has been regenerated!! :rolleyes:

Link to comment
Share on other sites

yes i believe having it under all users apply to all users

.bat .cmd doesn't matter afaik

i dunno the code i have given u was setting the service to manual maybe disable it?

other than that I cannot help u cause i dunno!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...