DOS file editing syntax

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

TripleCrown

Thread Starter
Joined
Nov 4, 2001
Messages
35
Does anyone know how to create a batch file to edit system.ini? I have a computer that needs to have this change:

[boot]
system.drv=system.drv
drivers=mmsystem.dll power.drv
user.exe=user.exe
gdi.exe=gdi.exe
sound.drv=mmsound.drv
dibeng.drv=dibeng.dll
comm.drv=comm.drv
shell=Explorer.exe changed to shell=progman.exe
keyboard.drv=keyboard.drv
fonts.fon=vgasys.fon
. . .

It has to be done via a batch file that is called by autoexec.bat when the machine boots. Any ideas?
 
Joined
Mar 18, 2001
Messages
1,741
You cannot edit files from a batch file, other than
append lines at the end (utilities can be created
to do most anything from a batch file, but I'm not
currently aware of any that edit ini file entries).

Why can't you just edit the file like you want it?
Or are we talking about an install program?

If you can give us all the details, maybe we can
help you find a solution.

Cheers, Mac
 

TripleCrown

Thread Starter
Joined
Nov 4, 2001
Messages
35
The problem is outlined in the last thread I posted. I figured the answer to the problem was to change the shell to progman, but then I realized I needed to write a batch file, or some other thing, to edit it. And I discovered that wasn't so easy.

Anyway, here's the post:


http://forums.techguy.org/showthread.php?s=&postid=270369#post270369

USB Keyboard Explorer Blue screen AHHHHH!

ANY help you can offer on this combination of hellish problems would be greatly appreciated.

P.S. I realize my sister can go replace the motherboard, get a keyboard controller card, etc.. but the point is to try to do this as cheaply as possible.

Thanks.
 
Joined
Mar 18, 2001
Messages
1,741
Here's one idea:

In the boot disk autoexec.bat, write this line:

copy c:\windows\system.ini a:

Run it and you'll have the system.ini on the boot disk.

Edit system.ini (on the floppy) with another computer
to include your shell=progman.exe line.

Change the line in the boot disk autoexec.bat to this:

copy a:\system.ini c:\windows\system.ini

This should put the edited file on the computer.

Note: the COPY command will overwrite a file from
a batch file without prompting, so the keyboard
isn't necessary.

If this doesn't work, let me know and I'll write you
a DOS exe program (that you can use from a batch
file) to edit the ini file if we have to.

Cheers, Mac
 

TripleCrown

Thread Starter
Joined
Nov 4, 2001
Messages
35
Yeah, man..that'll work! I just hope my sister can follow those directions...

Thanks man.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top