Search found 31 matches

by ladduq
05 Mar 2013 07:35
Forum: DOS Batch Forum
Topic: search list of strings in a file
Replies: 7
Views: 5700

Re: search list of strings in a file

Your code is working for me. What kind of issue do you have? yes i also tested the code but only for about 10 keywords i tested and it was working fine. However when i implemented the same for 300 keywords it is not working.It is not displaying the output in results file.But when i manually find in...
by ladduq
05 Mar 2013 07:31
Forum: DOS Batch Forum
Topic: copy files
Replies: 1
Views: 2391

copy files

I have a file adapter.txt in 100 different locations(paths).and i am trying to copy althose instances of adapter.txt to a new location(path) I have written like this copy C:\myfile\one\adapter.txt C:\Newpath copy C:\myfile\two\adapter.txt C:\Newpath copy C:\myfile\three\adapter.txt C:\Newpath copy C...
by ladduq
05 Mar 2013 02:22
Forum: DOS Batch Forum
Topic: search list of strings in a file
Replies: 7
Views: 5700

search list of strings in a file

Hi I have a file which contains a list of keywords up to 300. These keywords are to be searched one by one in another text file which has the matching keyword lines and output the matching lines in another file. I have made it upto this but unable to get output.pls suggest @echo off cls set info=The...
by ladduq
27 Jul 2012 03:47
Forum: DOS Batch Forum
Topic: Help need on file paths and files Keyword
Replies: 9
Views: 6976

Re: Help need on file paths and files Keyword

@foxidrive Thank you
by ladduq
26 Jul 2012 22:20
Forum: DOS Batch Forum
Topic: Help need on file paths and files Keyword
Replies: 9
Views: 6976

Re: Help need on file paths and files Keyword

@foxidrive file instances will be more than once and not hovering keyword lines which are present inside the files as text. yes hovering is a keyword that should be found inside the files.The keyword is not case sensitive. I assume you want the lines that are found containing the keyword, to be plac...
by ladduq
26 Jul 2012 04:27
Forum: DOS Batch Forum
Topic: Help need on file paths and files Keyword
Replies: 9
Views: 6976

Re: Help need on file paths and files Keyword

@all Thanks for your reply. I dont have all of it i have a part of it like based on filenames to get their paths and matching keyword line and it doesnot work for filenames with multiple instances and there are no logs to keep track of multiple instances and as i'm leaning and new to this one i face...
by ladduq
26 Jul 2012 04:22
Forum: DOS Batch Forum
Topic: Help need on file paths and files Keyword
Replies: 9
Views: 6976

Re: Help need on file paths and files Keyword

I was with you until here. Please explain further. Now based on the file names without file numbers want to export a single line matching the keyword 'Hovering' in that directory files so output will be like below if these were line starting with 'Hovering' keyword in all four files Hoverting.txt f...
by ladduq
25 Jul 2012 04:34
Forum: DOS Batch Forum
Topic: Help need on file paths and files Keyword
Replies: 9
Views: 6976

Help need on file paths and files Keyword

Hi I have a list of file names in a file named filenames.txt with some line number like below filenames.txt one.txt:12 two.txt:35 three.txt:89 four.txt:56 etc up to some thousands of files. what needed to do is eliminate the Line numbers starting with colon in the filenames.txt so output will be del...
by ladduq
25 Jun 2012 05:28
Forum: DOS Batch Forum
Topic: Display filepaths of specific files
Replies: 4
Views: 3915

Re: Display filepaths of specific files

@foxidrive and @Dave Benham Thank You for The Support Actually each file has a single line starting with the word " start " so can i also get the file paths along with the line which starts with the word "start" For example: ==================================== Input: one.txt(if ...
by ladduq
22 Jun 2012 04:47
Forum: DOS Batch Forum
Topic: Display filepaths of specific files
Replies: 4
Views: 3915

Display filepaths of specific files

Hi I'm able to get the filepaths of all the files existing in a folder and all its subfolders. However I need to get the filepaths of only specific files. I have a folder which contains 300 subfolders and total number of files is 12332 i need to get the filepaths of only a 1000 files. For example: =...
by ladduq
22 Mar 2012 06:10
Forum: DOS Batch Forum
Topic: search for list of filenames in a single file
Replies: 10
Views: 10995

search for list of filenames in a single file

Hi Need help to search for list of filenames in a single file. Lets say the file information.txt contains lakhs of filenames but i only need to get a list of hundred filenames with all the instances in that file. lets say information.txt contains 1 1.txt 2 2.txt 3 3.txt 4 2.txt 5 4.txt 6 5.txt 7 2.t...
by ladduq
21 Mar 2012 00:19
Forum: DOS Batch Forum
Topic: find string with multiple instances and copy all to file.
Replies: 22
Views: 18639

Re: find string with multiple instances and copy all to file

Hi

Got it

@abc0502's script above wroks fine.

Thank You @abc0502.

Thank You all.

Regards
Ladduq
by ladduq
20 Mar 2012 06:44
Forum: DOS Batch Forum
Topic: find string with multiple instances and copy all to file.
Replies: 22
Views: 18639

Re: find string with multiple instances and copy all to file

Hi

Its not working as the expected output mentioned above.

Even it is displaying the output if it matches a
part of search string. :(

Regards
Ladduq
by ladduq
20 Mar 2012 00:01
Forum: DOS Batch Forum
Topic: find string with multiple instances and copy all to file.
Replies: 22
Views: 18639

Re: find string with multiple instances and copy all to file

Hi Need some help the script should not display a line which contains a part of matching string pattern.It should stick to a whole string and search that whole string and then only display those lines as output. For example a file contains 1 hey john i'm doing fine 2 hey john how are u 3 john i thin...
by ladduq
19 Mar 2012 01:39
Forum: DOS Batch Forum
Topic: Regarding pdf
Replies: 1
Views: 2724

Regarding pdf

Hi I need some help regarding PDF can we convert pdf to .txt or .doc format using batch program. or can we search for a string in a pdf document and display that whole line in to a separate text document or pdf or .doc say we have below few lines in pdf and search string is john 1 how are u john 2 h...