Batch file to delete files

Hi,

I want a Batch file to delete files through group policy, basically I want to delete .xls, .doc, .dwg kind of files through group policy.

I have following batch file.



Don't know for sure that del or redor from Windows work properly
Try to check what this link recomends
http://superuser.com/questions/179660/how-to-recursively-delete-directory-from-command-line-in-windows
Or even this

http://stackoverflow.com/questions/12748786/delete-files-or-folder-recursively-on-windows-cmd
Kind regards
LC



Don't know for sure that del or redor from Windows work properly
Try to check what this link recomends
http://superuser.com/questions/179660/how-to-recursively-delete-directory-from-command-line-in-windows
Or even this

http://stackoverflow.com/questions/12748786/delete-files-or-folder-recursively-on-windows-cmd
Kind regards
LC



Thanks, but this it not what I want, I want to delete specific files no matter under which folder it present in entire drive.



Just use del with the /S switch:



Thank you, it works.....



Share this

Related Posts

There was an error in this gadget