Index:
SETUP Switches
Undocumented:
/IW - Bypasses needing to read the License screen. Needs to be upper
case when run within Windows.
/IP - Ignores Plug and Play.
/IR - By passes the checkin into the system CMOS. Useful for some
combinations of motherboard and Award BIOS ver 4.50 P.
/D - If you do not want Setup to use your existing Windows
configuration (such as your current Win.ini and System.ini
files), use this switch.
/N - Allows setup to run without a mouse.
Documented:
filename - Runs the particular INF file.
/ID - Ignores the DIsk Space check.
/IS - Ignores the routine System check.
/IQ - Skips the test for cross-linked files.
/IM - Skips the memory check.
/IN - Runs setup without the Network Setup Module.
/NTLDR - Eliminates check for previous operating system.
/P - Detection Switch Option String.
- Using a /P allows you to use an additional switch for viewing and
setting some detection parameters.
You can separate them with a semicolon (;).
For example /P g=3;i;p.
g=0 to 3 - This switch controls how verbose the built-in progress bar is.
At maximum level (3), it shows all the resources of the detected
devices along with the progress bar. This switch can help to
identify which detection module causes a certain problem.
The default is 0.
b - This switch enables Prompt Before mode. It prompts you before a
detection module is called so that you can step through each
detection module manually and decide if you want to skip it.
The default is disabled.
i - This switch tells Setup not to report the existence of a Plug
and Play BIOS. It is useful on systems that have a Plug and Play
BIOS that is not reported in Machine.inf.
p - This switch enables performance logging. It writes performance
timing information to the DETLOG.TXT file.The default is disabled.
f - This switch enables Clean Registry mode. It forces Detection to
clean the root branch of the registry before starting. This
switch is ignored when Setup is run in the Windows 95 graphical
user interface (GUI). The default is disabled.
Emergency Windows Recovery
Sometimes when working with multiple applications, Windows or more
specifically Explorer can crash. Explorer is the 'shell' of the Windows
operating system. When it crashes, you may loose the taskbar, all desktop
icons, and access to minimized applications available via the taskbar.
When Explorer crashes and you still have mouse control, it is possible to
revive Windows in order to save important information and reboot. I have
found that you can choose the File/Open command from the one accessible
application and run Explorer. Imagine NotePad is open and available but
nothing else on the computer (desktop icons, start menu, etc.). By choosing
the open command and selecting files of type 'all files', you can browse
to the Explorer.exe file located in the C:\Windows directory. NotePad,
Microsoft Excel, Adobe PhotoShop, etc. will naturally be unable to open the
Explorer.exe file but the trick is to 'right-click' the Explorer.exe file
in the Browse window and choose the 'Open' option from the menu. At this
point Windows is temporarily revived and you may 'Cancel' out of the Browse
Window and save all work in progress. It is important to reboot after this
to achieve a more stable environment.
Another solution is to press [CTRL] + [ESC] and run explorer.exe from
the task manager.
Rotating Desktop Images
If you want your desktop background to change each time you start your PC,
create a batch file named "deskxx.bat" into a folder named "spc".
c:\spc\deskxx.bat
@echo off
:: the following lines cycle a group of files.
> NUL ren deskxx.bmp desktt.bmp :: deskxx does not exist
> NUL ren desk03.bmp deskxx.bmp :: desk03 does not exist
> NUL ren desk02.bmp desk03.bmp :: desk02 does not exist
> NUL ren desk01.bmp desk02.bmp :: desk01 does not exist
> NUL ren desktt.bmp desk01.bmp :: desktt does not exist
:: Copy the desktop image to the windows directory.
> NUL copy/y deskxx.bmp c:\windows
c:\autoexec.bat
c:\spc\deskxx.bat
Rename your images in the order you prefer to the desk??.bmp format.
Place these images into your "c:\spc" folder with the deskxx.bat file.
Copy an image to the windows directory and name it deskxx.bmp, set
this image as your desktop background. On each restart, your desktop
will be a different image. Note that you may add more images to the
directory and edit the batch file accordingly.
Corporate Support Information and Logo.
You can place your company's support information in the "My Computer"
and control panel/system Properties dialog box. You can also include
your corporate logo so that it will also be displayed. The two files
required are OEMINFO.INI and OEMLOGO.BMP. OEMINFO.INI will contain the
support information and OEMLOGO.BMP will be the graphical logo for
the company. Place both OEMINFO.INF and OEMLOGO.BMP in the WINDOWS\SYSTEM
folder.
OEMINFO.INI Example:
[general]
Manufacturer=Specialized Systems
Model=Specialized Systems' PC Workstation.
[support information]
line1=Specialized Systems Support:
line2=
line3=Phone: 1-800-800-8000
line4=Email: support@specailizedsystems.net
line5=
OEMLOGO.BMP Example:
Should be a Windows BitMaP image.
size = 160x120.
Control Panel (Hard Link)
- Create a new folder with the name: 'Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}'.
- You can rename the "Control Panel" portion of the folder to whatever you like.
- You may find it useful to place this 'hard-link' into the 'start-menu' for quick access.
- To place in start-menu, right click 'Start' and choose 'open'. Cut and Paste the link.
- Here is a list of other 'hard-links' you may find useful:
- Briefcase.{85BBD920-42A0-1069-A2E4-08002B30309D}
- Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}
- Dial Up Networking.{992CFFA0-F557-101A-88EC-00DD010CCC48}
- Fonts.{BD84B380-8CA2-1069-AB1D-08000948F534}
- Inbox.{00020D75-0000-0000-C000-000000000046}
- Internet Cache.{7BD29E00-76C1-11CF-9DD0-00A0C9034933}
- Internet History.{FF393560-C2A7-11CF-BFF4-444553540000}
- My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}
- Network Neighborhood.{208D2C60-3AEA-1069-A2D7-08002B30309D}
- Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}
- Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}
- Subscriptions.{F5175861-2688-11d0-9C5E-00AA00A45957}
- URL History.{FF393560-C2A7-11CF-BFF4-444553540000}
Run this batch file to make a Control Panel hard-link in the start menu.
Personalize the 'new' menu for right-clicks in OS Shell.
- Create a template file with attributes like favorite font and size.
- Copy template to the \Windows\ShellNew directory. This is a 'hidden folder' so check permissions.
- Open the registry editor [regedit.exe].
- [HKEY_CLASSES_ROOT] - Find the extention of your template.
- Make a new 'key' named 'ShellNew'.
- Make a new string value within ShellNew called 'FileName'.
- Set the FileName string value equal to the template filename (template.ext).
This is great way to make corporate letterhead templates.
You can access control panels without the 'Control Panel'.
- The control panels are in the \Windows directory with the extension of CPL (*.cpl).
- There are two ways of accessing them. One is double-clicking them in Windows 98.
- In Windows 95, use the run menu or command prompt 'rundll32.exe shell32.dll,Control_RunDLL c:\windows\system\filename.cpl'.
You can also specify switches such as @1 for tab #1 or @2 for tab #2.
You can edit the identity your computer has registered with the registry editor.
- Open the registry editor [regedit.exe].
- [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion].
- Edit 'RegisteredOrganization' and 'RegisteredOwner'.
This can be useful when purchasing or liquidating obsolete computers.
Multiple printer settings.
- Install printer again under a new name.
- Remember that the drivers are already installed so don't choose 'have disk'.
- Save the alternate settings and choose this printer when desired.
I like to print both front and back (book style) because I put most
printouts in binders. I set one printer setting for book style and
made an additional setting for one-sided prints for more professional
prints. I also increased the ink/print quality respectively.
Restore system registry.
Windows 9x makes backups of the system registry at boot with an extension
of DAO. If your system registry gets corrupted, you can restore it in DOS
during a bootstrap by pressing [F8] and choosing command prompt only.
At the DOS command prompt:
- Change the file attributes of SYSTEM.DAT and USER.DAT to 'not-system, not-hidden, and not-read-only' with the command 'attrib -s -h -r filename.ext'.
- Copy SYSTEM.DAO and USER.DAO to SYSTEM.DAT and USER.DAT respectively. You will be over-writing the corrupt registry files.
- Change the file attributes back to the original attributes of 'system, hidden, and read-only' with the command 'attrib +s +h +r filename.ext'.
- [CTRL+ALT+DEL] - Restart the computer and the registry settings will be restored.
Close the 'Start' button.
You can close the 'Start' menu or move the 'Start' button on Window 95
by clicking on the 'Start' menu and then pressing [Esc]. Next press
[Alt]+[-] or [Alt]+[spacebar] and choosing move or close.
Access your Dialup-Networking connection with the command prompt.
This can be used in batch files for automated startups that make
internet connections when unattended.
- The command line is: 'rundll32.exe rnaui.dll,RnaDial My Connection'.
- Make sure the name of the connection is verbatim with spaces and upper-case naming conventions used for the connection name.
Modem Speed.
The following only applies to Windows 95 b with Dial-up Networking 1.2.
Dial-up Networking 1.3 upgrade for Windows 95 does not require
this setting because it can be simply changed in the
Control_Panel/Network/Dial-up_Adapter/Advanced settings.
Windows 98+ uses Dial-up Networking 1.3.
Since Windows 95 was first designed for local-networking,
the Transmission Control Protocol (TCP) is not optimized for modems.
When an TCP/IP connection is opened, the protocol tells the remote host
what maximum transmission unit (MTU) size to use for each packet.
Since Windows is optimized for use on an LAN it requests a transmission
frame size that is bigger than the maximum frame size that most internet
routers are set to use.
In this situation the remote host sends packets to your PC that have
to be split into smaller packets by the various routers on the internet
and then re-assembled before they get to your PC. This really hurts
throughput. The solution is to set the maximum transmission unit (MTU)
to be the minimum of the transmission sizes of any router between your
PC and the host you're connecting to. According to the documentation,
576 is the internet standard MTU.
Since most people's ISP's mail server (pop3) and news server (NNTP)
are located on internal networks within the ISP's RAS network,
more often than not, your packets will not be relayed by an internet
router so this optimization will actually slow these connections while
increasing the speeds of inter-network connections.
The ethernet standard MTU is 1500 which means a LAN's TCP should be
configured to send frame sizes of 1500. You want to configure an
internet optimized PC for an MTU of 576:
- Open the registry editor [regedit.exe].
- [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetTrans\0000].
- MaxMTU = 576
- HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP
- DefaultReWindow = 8196
- DefaultTTL = 64
You can use the MS-DOS ping.exe utility to determine a router's MTU.
I found the bbn.com or bbn network to break at 548 MTU. Meaning that the
MaxMTU above for a bbn network based machine should be set to 548 instead
of the 576 listed in the above tip.
You can also combine the MS-DOS utility traceroute.exe to ping different
routers on a path to find which router is breaking down the MTU as it
routes the packets to the next destination. Simply ping the router past
the router in question.
c:\>ping -f -l 548 www.bbn.com
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
Change 548 above to a higher number to determine the MTU of your network.
If the -l size is too large, you will receive the following:
C:\>ping -f -l 1500 www.bbn.com
Pinging www.bbn.com [128.11.41.197] with 1500 bytes of data:
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
The above results mean that you tried to ping www.bbn.com with a
TCP packet size of 1500 4 times. Each result returned a message
'Packet needs to be fragmented but DF set', the reason for this
result is because the -f switch set a flag in the TCP packet
instructing the packet routers not to fragment the packet. The
ping utility therefore returns a message stating that the packet
needed to be fragmented but since the 'Don't Frament' flag in the
packet was 1 or true, a router on the route to www.bbn.com refused
to relay your ping request. The router wanted to split the packet
into a size setup by the router engineers. This packet spliting
can lower bandwidth when taking into consideration the time it
takes to split the packet, send the 1st packet on the route while
buffering the other half, then send the 2nd packet. Besides the
time taken for the packet to be split, each packet had to wait its
turn to be transmitted while avoiding data collision. Don't forget
the packets must be re-assembled once they reach your machine.
Reserving Resources from Plug and Play Devices
If you want to make sure Windows95 doesn't assign certain resources
(IRQ, I/O etc.) to your Plug and Play Devices, do the following:
- Open up the Device Manager
- Double click on Computer
- Click on the Reserve Resources tab
- Click on the Resource you want to reserve
- Click on the Add button
- Enter the value
- Click on the OK button