PDA

View Full Version : Delete Temporary files project. Need help.


siray
04-25-2008, 08:24 AM
To all AMS masters... ;)
I need some corrections for my little program (attached below) especially about the scripts.
This program is used for deleting all temporary files in Temp folder and some additional folders.


The problem is, sometimes my program can't delete a file (or some) from Temp folder because its locked by the system.

My question..
How to unlock the file(s) that has been locking by the system, so my program can delete all files in Temp folder?
OR is there any script or plugin or whatever to do that? (unlock files)


Very sorry for my english... and Thanks a lot.... :o


NB:
And some scripts, plugin, dll files, of this program was taken from this forum (thanks for the author):yes:yes:yes

siray
04-29-2008, 03:03 PM
mmmm... anyone..? pls..? :rolleyes

RizlaUK
04-29-2008, 04:19 PM
to unlock the file you would need to find out what process is useing it, im not sure how to go about this, ill have a little search and see what i can dig up, but i cant promise anything

kala
04-29-2008, 11:00 PM
hey,
nice project lol, i did the same project but i used a batch file to delete the contents in the temporary file.

siray
05-01-2008, 01:36 AM
hi Rizla,
Thanks 4 ur help. i'll wait for ur results. :yes

and Kala, 'll try ur way :cool