The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
39 views

How to find which port a service is using by “grep” the result of netstat output on windows 7?

i want to find which port a service is using. i know i can use netstat -anb to show all the protocols and all applications. but how can i filter the result, eg. if the program i'm trying to ...
1
vote
0answers
49 views

Dir and Findstr commands taking a long time to complete in Batch File

dir %DRIVE_NAME%: /S /C /A-D /Q /T:C | findstr ".zip$ .doc$ .xls$ .xpt$ .cpt$ .cpo$ .xlsx$ .pdf$ .dat$ .txt$ .docx$ .csv$" >> file.info I am using above command to list all information in ...
2
votes
2answers
451 views

Use Batch findstr for files with whitespaces

I'm trying to search for a string in a given file. This file can have whitespaces in its name and I'm having trouble with the Batch file. I can easily do this by console getting the correct results: ...
0
votes
0answers
74 views

Does FIND (+ FINDSTR) use the indexed Windows search system (that is, the stuff I can select/deselect under ‘Indexing Options’)?

I added a test file (a 540 MB .txt file) using ‘Indexing Options’, rebuilt my index, and then tried searching for a string I know for sure is in the file. I then searched for the string using (1.) ...
0
votes
0answers
57 views

Two questions about FINDSTR and FIND on Windows 8

Can someone tell me how to limit the search results produced by running a FINDSTR or FIND command line search on Windows 8? I am searching a gigantic folder of text files and getting way too many ...
3
votes
1answer
295 views

Vim: How do you use external grep on windows to search for quotation marks?

For some reason I can't for the life of me figure out how to pass single quotation marks to external tools when using vim. For example, I might want to call Vim's external grep to search for the text ...
0
votes
0answers
166 views

How can get Duration from Video via ffmpeg in Windows 7 command line

Last time, I get some advises from here that how to grep Duration from Video files in Linux. But this time, I need Windows version of that. My Linux Command was ffmpeg -i file.ts 2>&1 | grep ...
1
vote
1answer
150 views

Batch : extract some characters of a string

How can I extract alphanumeric characters only from a string? Example : b:lbalbqsd1287/;:!, gives blbalbqsd1287 Is it possible with findstr?
0
votes
1answer
314 views

Searching a string in a file anywhere on PC using Findstr

I have a text (.txt) file located somewhere on my PC that contains a bunch of data, including the following string: Secret Username: ********* Secret Password: ********* How can I find this file ...
1
vote
2answers
1k views

Why does this 'findstr' command not function as expected?

I use the command-line program 'findstr' frequently as I write software. It helps me quickly locate all the files that contain a specific string in a set of subdirectories. It is a lot faster to use ...
0
votes
3answers
396 views

Recursive Batch File

I have a file that looks this: head1,head2,head3,head4,head5,head6 a11,a12,keyA,a14,a15,a16 a21,a22,keyB,a24,a25 a31,a32,keyC,a34 a41,a42,keyB,a44,a44 a51,a52,keyA,a54,a55,a56 ...
1
vote
0answers
426 views

Find vs Findstr results

Per this answer I was attempting to use findstr to locate a string (a name) inside some HL7 log files in a directory. Findstr was getting 0 results, but Find returned plenty. I played around with ...
0
votes
1answer
2k views

How to get the exact match of a string in file using FIND or FINDSTR in dos

I am trying to get the exact match of a path ("\Users\sachin.a.goyal\Desktop\test\") which is there in a file: Biggest.txt: 1 number: name = DMS 3.0 R2 - Deployment Workbook_APAC v4_WMT size = ...
9
votes
3answers
14k views

What's the difference between the find and findstr commands in Windows?

In Windows, what are the differences between the find and findstr commands? Both seem to search for text in files: find C:\> find /? Searches for a text string in a file or files. FIND [/V] ...