home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
utility
/
grpini
/
setini16
/
setini.doc
next >
Wrap
Text File
|
1995-12-09
|
2KB
|
58 lines
SETINI - Automated Windows .INI file configurer. Version 1.6b
Written by Peter Summers <peter@cardiology.medrmh.unimelb.edu.au>
(C) Cardiology Department, Royal Melbourne Hospital. May be freely
distributed. Sets values in Windows-style .INI file. Useful for
altering the configuration of large numbers of Windows PCs on a network.
The program takes four or five parameters: file name, section name,
keyname, value and (optionally) options. Valid options are /add and
/del (see below).
Eg. SETINI SYSTEM.INI 386Enh TimerCriticalSection 10000
alters the value of TimerCriticalSection to 10000 in the [386Enh]
section of SYSTEM.INI if it has some other value, or adds the line
TimerCriticalSection=10000 if no TimerCriticalSection line exists.
If the section [386Enh] doesn't exist, it is created and the required
line is then added.
If the section or keyname spaces, they must be enclosed in quotation
marks ("). If an empty section header is specified ("") then the line
is altered or added before any section header, which is useful for
config.sys files.
The option /add adds the line unless it exists exactly, eg.
SETINI SYSTEM.INI 386Enh device vtda.386 /add
adds a new device in the 386Enh section of the SYSTEM.INI file, unless
the entire line device=vtda.386 already exists.
The option /del deletes a line, eg.
SETINI SYSTEM.INI 386Enh device *vtd /del
deletes the line device=*vtd from the 386Enh section of the SYSTEM.INI
file.
In version 1.4 of SETINI, the file to be processed is assumed to be in
directory c:\windows unless otherwise specified. Version 1.4 is less
readily confused than earlier versions by trailing or leading spaces and
by parial matches of key values.
In version 1.5, the file extension is assumed to be .INI unless
otherwise specified. Values containing spaces no longer need to be
contained within quotes.
In version 1.6b, config.sys files are supported. A bug with potentially
deleting lines from the wrong section is also fixed.
Please note that the DOS command line limit of 128 characters prevents
the setting of very long key values.
For functionality not found in SETINI, look at Andre Schild's MAINTINI.
If you find this utility useful, send me some mail and tell me.