Findstr (all text) in file and dele

amd athlon 64 3500+ winch
November 27, 2007 at 07:39:21
Specs: windows xp sp2 32bit, kloksnelheid 2.2 geh. 1gb
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 ®


See More: Findstr (all text) in file and dele

Report •


#1
November 27, 2007 at 12:14:28
You want all the text deleted? Or only certain text?

"Computer security." — Oxymoron


Report •

#2
November 28, 2007 at 08:26:53
http://www.microsoft.com/resources/... will give you the basics of the command and you can google findstr script or script programming forums.

Report •

#3
November 28, 2007 at 12:11:48
Give us more information on what you need exactly and we can help you.

"Computer security." — Oxymoron


Report •

Related Solutions

#4
November 29, 2007 at 15:49:57
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 ®


Report •

#5
November 29, 2007 at 18:29:42

@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."


Report •

#6
November 30, 2007 at 06:10:03
tnx a bunch

Greetz ,

DjinX Huizelogica ®


Report •


Ask Question