PDA

View Full Version : can you help me how to empty temp folder with a button click ?


melissa
03-20-2007, 09:24 AM
hi everyone

can you help me how to empty temp folder ( c:/WINDOWS/temp)

with a button click?

thank you

bule
03-20-2007, 10:02 AM
Try this:

File.Delete(_WindowsFolder.."\\Temp\\*.*", true, false, true, nil);
File.Delete(_TempFolder.."\\*.*", true, false, true, nil);

melissa
03-20-2007, 10:40 AM
thank you bule , i will try it and i tell later

nals
03-20-2007, 06:18 PM
This code not working?

melissa
03-22-2007, 09:43 AM
thank you bule the code is working

nals i tryed the code is working for me , try again

nals
03-22-2007, 05:03 PM
Uhh how come i did but not working, what operating sys you have? I ve got win xp pro.
:rolleyes

nals
03-22-2007, 05:12 PM
ops sorry melissa its working, i was looking at the wrong folder, i went and chack C:\Documents and Settings\user\Local Settings\Temp (this folder)

Thank you worm, It works fine.!!!!

how do you delete crrent user internet temp internet files folder? and is there a way to delete internet search history??

:yes