Skip to Content
PC Hacks
book

PC Hacks

by Jim Aspinwall
October 2004
Intermediate to advanced
304 pages
7h 44m
English
O'Reilly Media, Inc.
Content preview from PC Hacks

Hack #91. Hack the Windows 95/98/Me DOS Startup

Gain more control and boot faster by customizing this DOS configuration file.

In this hack, you'll learn ways to customize how DOS boots and to make booting up faster.

A Typical MSDOS.SYS File

Windows 95, 98, and Me use a file called MSDOS.SYS to configure the initial boot process. MSDOS.SYS resides in the root folder of the boot drive with Read-Only, System, and Hidden file attributes. The MSDOS.SYS file contains sections of information pertaining to the Windows installation and boot options. The [Paths] section of the file lists information about Windows' files (the Windows folder and location of the Registry), and the [Options] section holds information about customizing bootup.

Warning

Under DOS 6.22 and earlier, MSDOS.SYS is a binary program file critical to basic DOS operation and is not editable. Only with the DOS supplied in Windows 95 and higher is the MSDOS.SYS file an editable text file.

To view and edit the contents of the C:\MSDOS.SYS file, you must first remove the Read Only and Hidden file attributes. To do this, get to a DOS prompt (in Windows, open MS-DOS Prompt or go to StartRun, type in COMMAND.COM, and then click OK) and issue the following commands:

X:\>C:
C:\FOO>CD \ 
C:\>attrib -r -h

Tip

When you are done editing MSDOS.SYS, restore its attributes with attrib +r +h +s MSDOS.SYS.

Note that there are spaces between the -r, -h, and -s in the previous command. The file is now ready to be viewed or edited with a plain text ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Car PC Hacks

Car PC Hacks

Damien Stolarz
Repairing and Upgrading Your PC

Repairing and Upgrading Your PC

Robert Bruce Thompson, Barbara Fritchman Thompson

Publisher Resources

ISBN: 0596007485Errata Page