findstr help!

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

findstr help!

#1 Post by Rileyh » 08 Oct 2011 01:37

Hi,
I need help with the command "findstr"
What I want it to do is find a string of text, specifically "print" and then swap that for something else.
Could someone give me a batch file and an explanation of how that batch file works.

Any help would be greatly appreciated,
Rileyh

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: findstr help!

#2 Post by aGerman » 08 Oct 2011 09:06

Have a look at the substitude function.
Also there are a lot of examples you can find in this forum.

Regards
aGerman

Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

Re: findstr help!

#3 Post by Rileyh » 08 Oct 2011 20:42

aGerman,
Thanks for the post.
Could you provide examples of the examples on this forum?

Regards,
Rileyh

Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

Re: findstr help!

#4 Post by Rileyh » 08 Oct 2011 21:20

aGerman,
The "substitute" command does not exist in W7 batch.
Could you give me an alternative?

Regards,
Rileyh

Post Reply