Search found 7 matches

by PratikPatil
28 Oct 2012 06:03
Forum: DOS Batch Forum
Topic: How to find file in whole drive which has particular string?
Replies: 15
Views: 7863

Re: How to find file in whole drive which has particular str

Mapping can not be done all the servers. we had that optiona as well. But its not going to work for all 180 servers. Bec they reside in different different domains. what do you thing. BATCH should be the right thing for this or VB Script. But again for VB there might be some limitations come whcih i...
by PratikPatil
28 Oct 2012 05:49
Forum: DOS Batch Forum
Topic: How to find file in whole drive which has particular string?
Replies: 15
Views: 7863

Re: How to find file in whole drive which has particular str

No No.It is a bacth file. Only thing I used, where i was not honest is the word. Infact i can tell you the word as well. the word in US97UAP03IBMT. This is actully DNS name where we connect and that need to be found on the server whcih all bacth script has. Another thing we are going to migrate it o...
by PratikPatil
28 Oct 2012 05:39
Forum: DOS Batch Forum
Topic: How to find file in whole drive which has particular string?
Replies: 15
Views: 7863

Re: How to find file in whole drive which has particular str

2008 its present but not on 2003. And out 180 more than 60% are 2003.
by PratikPatil
28 Oct 2012 05:26
Forum: DOS Batch Forum
Topic: How to find file in whole drive which has particular string?
Replies: 15
Views: 7863

Re: How to find file in whole drive which has particular str

No. We dont have this. I wan tot make as generic as possible. Sicne I need to run this on 180 servers whcih are different from each other. So can this be most simple way done. As in we just need DOS and easily it will run without any pre-requiests. those 180 servers are some win 2003 and some are wi...
by PratikPatil
28 Oct 2012 04:51
Forum: DOS Batch Forum
Topic: How to find file in whole drive which has particular string?
Replies: 15
Views: 7863

Re: How to find file in whole drive which has particular str

The replacing script was not good.. :( ...It deleted all the contents from all the files where ABC was present. all the files it made blank..

I ran it as it is. and I am not woried about CASE. it should actully search for ABC as well as abc and replace it with XYZ.

Please suggest.
by PratikPatil
28 Oct 2012 03:53
Forum: DOS Batch Forum
Topic: How to find file in whole drive which has particular string?
Replies: 15
Views: 7863

Re: How to find file in whole drive which has particular str

Excellent..!! this is called minute understanding. I tried my logic whcih was around 15 lins whcih could not work, But this 4 line worked nicely. Yes. Need some more help. The batch files are more than thousands. what change you were talking, please let me know,. Also If I want to replace that strin...
by PratikPatil
27 Oct 2012 07:18
Forum: DOS Batch Forum
Topic: How to find file in whole drive which has particular string?
Replies: 15
Views: 7863

How to find file in whole drive which has particular string?

Hi All, I want to find the file (specifically *.bat file only) in whole D drive which has the string "ABC" "ABC" string should presnt in that file content and I want to print the path along with that file name in one txt file. I am able to get all the *.bat files in D drive (from...