Hi There I need A bat Script that searches for text in desktop.ini files and deletes the text within it!
So I figured The Findstr + For command but don't know how to combinate or to pass on the variable can anyone help me?
Greetz ,DjinX Huizelogica ®

You want all the text deleted? Or only certain text? "Computer security." — Oxymoron
http://www.microsoft.com/resources/... will give you the basics of the command and you can google findstr script or script programming forums.
Give us more information on what you need exactly and we can help you. "Computer security." — Oxymoron
What i need is:
from root dir %userprofile%\Local Settings\
find all desktop.ini files in all subdirs
and erase the contents of all the desktop.ini files,Greetz ,
DjinX Huizelogica ®
@echo off
for /r "%userprofile%\local settings" %%t in ("desktop.ini") do (
echo del %%t
)The echo command is for testing purposes. To delete all the desktop.ini files, remove the echo command.
"Foolproof systems don't take into account the ingenuity of fools."
tnx a bunch Greetz ,
DjinX Huizelogica ®
