There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking outlook outlook 2003 outlook express password printer problem problems ram router security slow software sound sprtcmd.exe trojan usb virus vista windows windows xp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
DOS file editing syntax


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
TripleCrown's Avatar
Member with 35 posts.
 
Join Date: Nov 2001
Location: New York, NY
10-Nov-2001, 08:42 AM #1
Post DOS file editing syntax
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?
__________________
Champagne for my true friends, true pain for my sham friends.
Rollin' Rog's Avatar
Computer Specs
Moderator with 42,947 posts.
 
Join Date: Dec 2000
Location: North of Hollywoodland
Experience: I know when to fold em'
10-Nov-2001, 09:48 PM #2
TC, I'm going to move your question over to the DOS forum, where you may catch an old hand who can do that.

I'm also going to give you a link to the DOS forum at Vdr where Vernon Frazee moderates. If anyone can do that, he can, he is a master of DOS Batch file writing:

http://discussions.virtualdr.com/cgi...d+DOS&number=7

See also:

http://www.comp-air.com/vfrazee/batch/
__________________
What The Dormouse Said

Donate

"Politicians, ugly buildings and whores all get respectable if they last long enough."
MacFromOK's Avatar
Senior Member with 1,947 posts.
 
Join Date: Mar 2001
Location: Oklahoma
Experience: idiota de la aldea
11-Nov-2001, 11:45 AM #3
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
__________________
MacFromOK : PC User
Do I have all the answers?
I don't even have all the questions!

____________________________________________________________
TripleCrown's Avatar
Member with 35 posts.
 
Join Date: Nov 2001
Location: New York, NY
11-Nov-2001, 06:59 PM #4
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...369#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.
__________________
Champagne for my true friends, true pain for my sham friends.
MacFromOK's Avatar
Senior Member with 1,947 posts.
 
Join Date: Mar 2001
Location: Oklahoma
Experience: idiota de la aldea
11-Nov-2001, 08:16 PM #5
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
__________________
MacFromOK : PC User
Do I have all the answers?
I don't even have all the questions!

____________________________________________________________
TripleCrown's Avatar
Member with 35 posts.
 
Join Date: Nov 2001
Location: New York, NY
11-Nov-2001, 11:51 PM #6
Yeah, man..that'll work! I just hope my sister can follow those directions...

Thanks man.
MacFromOK's Avatar
Senior Member with 1,947 posts.
 
Join Date: Mar 2001
Location: Oklahoma
Experience: idiota de la aldea
11-Nov-2001, 11:58 PM #7
Glad to help, let us know what happens...
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:17 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.