top of page

A simple batch file can open up multiple web pages automatically in your default browser whether you're using IE, Chrome or Firefox. Here's an example

@echo off

start "EDRM" "www.edrm.net"

start "EDI" "www.ediscoveryinstitute.org"

start "Georgetown Academy" "https://www.law.georgetown.edu/continuing-legal-education/programs/cle/ediscovery-training-academy/"

You simply prepare a script like this one [the names given before the web page addresses can be anything you choose] , and put it in a text file and change the extension to .bat . Then double-click and each referenced web address will open automatically.


 
 

You can use the Windows command fc (standing for file compare) to detect differences between two text files.

If you have three text files like these in a folder:

You can run the fc commands below to

a. show any differences between the two files:

fc "C:\foofolder3\test1.txt" "C:\foofolder3\test2.txt"

. . . and the complete differences will be shown.

b. show when two files are identical

fc "C:\foofolder3\test1.txt" "C:\foofolder3\test2.txt"

. . . notice since these files are the same you get the message, "no differences encountered"

c. a command with /LBn , where n = a number of different lines in the two files after which you want the comparison to cease.

fc /LB1 "C:\foofolder3\test1.txt" "C:\foofolder3\test2.txt"


 
 

Here's a follow up to last night's tip where I continue to discuss how to use findstr to collect lines with certain strings from multiple text files.

You can focus your findstr search so that it focuses only on the beginning or end of lines. We begin with one text file at the root of the source folder

. . . and these three text files in a subfolder

If we run this search with the /b qualifier to direct the search to the beginning of the line, and /s to search through subfolders:

findstr /b /s "the" *.txt >C:\Process\results5.txt

. . . we get these results, just the lines from the text files which begin with the word, 'the'.

You can also focus the search on the end of the lines and run RegEx searches:

findstr /e /r /s "[0-9][0-9][0-9][0-9]" *.txt >C:\Process\results11.txt

. . . we get these results with lines that end with four digits.

However note that if the last line of your text file contains the specific string it may not show up in the results.


 
 

Sean O'Shea has more than 20 years of experience in the litigation support field with major law firms in New York and San Francisco.   He is an ACEDS Certified eDiscovery Specialist and a Relativity Certified Administrator.

The views expressed in this blog are those of the owner and do not reflect the views or opinions of the owner’s employer.

If you have a question or comment about this blog, please make a submission using the form to the right. 

Your details were sent successfully!

© 2015 by Sean O'Shea . Proudly created with Wix.com

bottom of page