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?
Delete locked file on restart
Moderator: DosItHelp
Re: Delete locked file on restart
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
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