Discussion Locked

Editing Files in DOS Batch Files

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to write a dos batch file that will edit the system.ini prior to it's use when booting a Win95 PC, according to input from the user, is there any easy way to do this, or are there any utilities around to help?

7 replies

by hold2file

You could set up a choice menu with multiple versions of the system.ini prior to startup using the copy command to copy the selected version (system.in1, system.in2, system.in3, etc.) as the desired system.ini file.
Are there a set number of options you wish to choose from.
I doubt that you could embed a %% variable in the system.ini file prior to Windows starting that would let it work.
If you were using a SET=VARIABLE command in the system.ini then you also might be able to have the batch file copy the proper Variable file to the name of the desired VARIABLE.

by johnm01

If all you're trying to do is edit the system.ini file prior to boot is put the command of edit c:\windows\system.ini in your autoexec.bat file.

by gesquiere.k

What we usually do is split the file in two or three parts adding the usertext behind every part where you have to insert the data and then put all the parts together in one file.

This discussion is closed to new replies.