Files

Status
Not open for further replies.

24giovanni

Banned
Messages
878
Can someone please tell me what the following files do indidivually please:

system.ini
config.sys
win.ini
autoexec.bat

TIA
 
SYSTEM.INI contains hundreds of internal Windows settings that are read at startup. It identifies the drivers to be loaded and provides details about handling DOS applications.


CONFIG.SYS is the primary configuration file for the MS-DOS and OS/2 operating systems. It is a special file that contains setup or configuration instructions for the computer system. The commands in this file configure DOS for use with devices and applications in the system. The commands also set up the memory managers in the system. After processing the CONFIG.SYS file, DOS proceeds to load and execute the command shell specified in the shell= line of CONFIG.SYS, or COMMAND.COM if there is no such line. The command shell in turn is responsible for processing the AUTOEXEC.BAT file.

The system can still boot if these files are missing or corrupted. However, these two files are essential for the complete bootup process to occur with the DOS operating system. They contain information that is used to change the operating system for personal use. They also contain the requirements of different software application packages. A DOS system would require troubleshooting if either of these files became damaged or corrupted.

CONFIG.SYS is composed mostly of name=value statements which look like variable assignments. In fact these will either define some tunable parameters often resulting in reservation of memory, or load files, mostly TSRs and device drivers, into memory.

In DOS, CONFIG.SYS is located in the root directory of the drive from which DOS was booted. In some versions of DOS it may have an alternate filename, e.g. FDCONFIG.SYS in FreeDOS, or DCONFIG.SYS in some versions of DR-DOS.

Both CONFIG.SYS and AUTOEXEC.BAT can still be found included in the system files of the later Microsoft Windows operating systems. Usually these files are empty files, with no content. OS/2 did not use the autoexec.bat file, instead using startup.cmd.

In the OS/2 subsystem of Windows NT, what appeared as CONFIG.SYS to OS/2 programs was actually stored in the registry.

Win.ini file:

This is the system file used to start programs under the older Windows 3.x systems. It has been included for compatibility with Windows 3.x.
Under Windows NT/2000/XP this category should not be used.

[Load] - category starts programs before user logins.
[Run] - category starts programs after user logins.

All these sections are supported by Absolute StartUp for Windows 95/98/NT/2000/XP, but we advise to use registry sections instead.


AUTOEXEC.BAT is only used on MS-DOS or Microsoft Windows versions based on MS-DOS, such as Windows 3.x, Windows 95, Windows 98, and Windows Me. The file is executed once the operating system has booted and after the CONFIG.SYS file has been processed. On Windows, this occurs before the graphical environment has been started. Unlike CONFIG.SYS the commands in AUTOEXEC.BAT could be entered into a DOS prompt, they are just the commands that the computer user wants to be executed automatically whenever the computer is started.

AUTOEXEC.BAT is most often used to set environment variables and run virus scanners, system enhancements, utilities, and driver handlers that must operate at the lowest level possible (for example real mode mouse or CD-ROM drivers on DOS computers). Applications that run within the Windows environment upon its loading are listed in the Windows registry.

Lines prefixed with the string "REM" are remarks and are not run as part of AUTOEXEC.BAT. The "REM" lines are used for comments or to disable drivers (say, for a CD-ROM). An alternative, though less common, method for commenting is using double colons :):).

[edit]
Example AUTOEXEC.BAT File
@ECHO OFF
REM ===========================================================
REM This is the AUTOEXEC.BAT file. Be careful with your edits.
REM If you have any problems let me know so I can help.
REM
REM -IT Guy, Murphy Stoffelis
REM ===========================================================
PATH=C:\WINDOWS;C:\WINDOWS\SYSTEM32\;C:\WINDOWS\COMMAND\;C:\
SET BLASTER=A220 I7 D1 T4
SET ULTRASND=240,3,3,5,5
SET ULTRADIR=C:\ULTRASND
SET LMOUSE=C:\MOUSE
::That next command is not a good idea to do... Murphy
REM DELTREE /Y C:\WINDOWS >NUL
C:\MOUSE\MOUSE.EXE
MSCDEX.EXE /D:123
ECHO Welcome to Microsoft Windows 98.
 
Status
Not open for further replies.
Back
Top Bottom