Computing.Net > Forums > Disk Operating System > Search/Replace in modified boot disk

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Search/Replace in modified boot disk

Reply to Message Icon

Name: John Parker
Date: May 19, 2000 at 08:25:07 Pacific
Comment:

Hello Everyone,
I really need some help
I'm trying to create a modified Win9x boot disk that will accept input (using INPUT.com)
SET the variable, search another .TXT file (using FGREP386) and if the string is not in the .TXT file I need to add it.
I've managed to do just about everything but I can't find a search/replace program that will accept variables (like %USER%) and then insert the variable above specific text (not line number)
Please Help!

Thanks,
John



Sponsored Link
Ads by Google

Response Number 1
Name: Grant
Date: May 19, 2000 at 20:53:18 Pacific
Reply:

The DOS tools you will come to love are FIND, FC, DATE, CHOICE + standard commands. You will want to FIND /v (all except the match) to a temp file and then replace what you do want in the file. This is verry crude, as it only workes in this manner if the line that you want is at the end of the file. But you can make a temp file or 2 or 10 w/ part of the file in it at the correct brake, as if the line that you are concerned w/ is at the end, and then just join them back together. To know what line you are on, use fc /n nul (I think that's what you want). Hope that gives you a place to start. If you have questions email for more help.


0

Response Number 2
Name: John Parker
Date: May 22, 2000 at 01:00:53 Pacific
Reply:

Thanks Grant - I'll give it a try


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


FDISK Problem Maximizing Dos Window



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Search/Replace in modified boot disk

Boot Disk Required? www.computing.net/answers/dos/boot-disk-required/720.html

Dos Neworking Floppy Boot Disk www.computing.net/answers/dos/dos-neworking-floppy-boot-disk/6808.html

NEED COMPLETE DESCRIPTION OF THE STEPS INVOLVED IN A STARTUP DISK www.computing.net/answers/dos/need-complete-description-of-the-steps-involved-in-a-startup-disk/4775.html