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
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!
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
Summary: G'day Randy You can make a boot disk in Safe Mode by typing... format a: /s in the RUN Command at the Start button [don't forget to insert a disk first, you may also get a message stating that this...
Summary: Hi, I have a problem that no one seem to know how to fix. I think it is very simple for someone who know DOS (Autoexec and Config.sys). I have an HP 5295 Laptop running Windows ME and a Dell Dimension...
Summary: here's what you wanted: Type ALT+F+X to exit Edit What's New for the Windows 98 Startup Disk? The Startup Disk has changed significantly for Windows 98. The following items are new for Windows 98. - M...