Page 1 of 1

Delete locked file on restart

Posted: 08 Feb 2010 09:49
by Conk1
I am trying to make a batch script that will delete certain locked files after a restart. So far I haven't been able to achieve this without using other programs.

Is there a command for getting rid of locked files on restart?

Re: Delete locked file on restart

Posted: 02 Aug 2011 06:12
by shiva
hi,
i dont know how to fild the locked files,
but i can suggest u a solution to this issue,
let the locked files are a.txt, c.txt

create a batch file nameed as autoexec.bat
and the content was
del e:\a.txt
del d:\b.txt

this file name has a special privilege it will get executed automatically on startup,
so u can write all the required actions that u intend to do,

thank you
shiva shankar