Not really web related... search and replace DOS program

Carl Todd ctodd at people-link.com
Wed Jun 10 19:42:29 EDT 1998


Jim,
	I've been using a utility called "gsar" that does just that.  I use it by 
calling the program at boot time to search through the win.ini file and delete any 
wallpaper images the computer users may set up (which is easy to do through 
Netscape).  The utility is free and well documented and the syntax is simply:

call gsar -s(text to search for) -r(text to replace it with) -o path/filename
(but without the parentheses)

The utility is also very useful in adding or removing carriage returns -- a 
problem that can crop up when transfering files between DOS and UNIX.  I 
found the file on a sharewhare site like http://www.hotfiles.com or 
http://www.sharewhare.com.  Let me know if you don't find it -- I'd be happy to 
e-mail it to you.

Carl Todd
________________________________________________________

	Carl Todd                                 
	Reference Department Head
	Amesbury Public Library
	149 Main St, Amesbury MA 01913
            (978) 388-8148



Date sent:      	Tue, 9 Jun 1998 13:41:53 -0700
Send reply to:  	jrichards at lib.naperville.il.us
From:           	"Jim Richards" <jrichards at lib.naperville.il.us>
To:             	Multiple recipients of list <web4lib at library.berkeley.edu>
Subject:        	Not really web related...

> Does anyone know of a way of writing a batch file or using a DOS 
> program that can search and replace a portion of a text file 
> automatically?  Example:  Upon booting a Win95 machine, automatically 
> running a batch file/program that changes the wallpaper settings in 
> the win.ini back to system default.  Any help would be greatly 
> appreciated...Thanks.
> 
> 
> {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}
>  Jim Richards
>  Systems Administrator
>  Naperville Public Libraries          Voice: (630)961-4100 x241
>  200 W. Jefferson Ave.                    Fax: (630)961-4117
>  Naperville, IL  60540-5374
> {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}
> 






More information about the Web4lib mailing list