@ECHO OFF
CD\
IF "%OS%"=="Windows_NT" GOTO D0S
VER | FIND /I "MS-DOS version 6">NUL
IF
ERRORLEVEL 1 GOTO DET
IF ERRORLEVEL 0 GOTO D0S
:DET
VER | FIND /I "Win">NUL
IF ERRORLEVEL 1 GOTO
END
DIR/A/O:GEN/P/S/V %1 %2 %3 %4 %5
GOTO END
:D0S
DIR/A/O:GEN/P/S %1 %2 %3 %4
%5
:END
FIND!.BAT works ONLY with MS-DOS 6.xx, Windows 95/98/ME [a.k.a. MS-DOS 7.00/7.10/8.00] and Windows
NT/2000/XP/2003 [no real DOS mode here :(], but NOT with ANY MS-DOS release earlier than 6.00, because Microsoft added the
"/S" command line switch to the "DIR" command ONLY in MS-DOS 6.00 and newer, making possible to search for
files/directories an ENTIRE drive/partition by using "DIR", ONLY IF the search starts in the root directory
(X:\ = X represents the drive/partition letter).
The only difference is that Windows 95/98/ME version of
"DIR" adds the "/V" (extended View) switch, NOT available in MS-DOS 6.xx or Windows NT/2000/XP/2003.
To use it, simply type this command from any DOS prompt:
FIND! FILENAME.EXT
and then press
Enter.
Here "FILENAME" is the name of the file you want displayed, and "EXT" is the file extension in MS-DOS
8.3 Short File Names (SFNs) standard.
Don't type the quotes though. :)
You can also find files with Long File Names
(LFNs) if using Windows 95, 98 or ME, if you type a tilde ("~") after the first 6 characters in the file name, which
converts a LFN into its correspondent SFN. Example:
FIND! PROGRA~1.EXE
To locate multiple files, use typical DOS "wildcards" ("*" or "?"). This example:
FIND! *.TXT
locates ALL
.TXT (text) files on your current (selected) drive/partition.
If your "SET PROMPT=" line contains the default
string "$P$G", displayed by running the SET command from any DOS prompt:
SET
then you can see your current (selected) drive/partition letter by simply looking at your DOS prompt (drive C shown in this example):
C:\>
If you have more than 1 hard drive/partition, change to your other drive/partition letter(s) by running (example):
D:
each followed by your particular FIND! command.
Another
example: to locate all files beginning with letter "A" on your current drive/partition, run:
FIND! A*.*
FIND!.BAT uses the "DIR" (stands for "DIRectory") internal MS-DOS command, built into COMMAND.COM (the
default MS-DOS command interpreter which loads in memory upon bootup).
If your search report is longer than the standard
DOS screen (80 lines by 25 columns), listing too many files to be displayed on a single screen, the BATch file stops at the
end of each page [due to the use of the "/P" (Page) switch for the "DIR" command], and you need to press a key to
continue to the next.
To see all available command line parameters for DIR, run:
DIR /?
from any DOS prompt.
-----Begin cut & paste here----- REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network] "DisablePwdCaching"=dword:00000001 ------End cut & paste here------
Save it. Then (double)-click on
DISABLE.REG in Windows Explorer or File Manager (FM = C:\WINDOWS\WINFILE.EXE).
If you need to reenable password
caching, create another plain text file named REENABLE.REG, with the following lines:
-----Begin cut & paste here----- REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network] "DisablePwdCaching"=dword:00000000 ------End cut & paste here------
Save it. Then (double)-click on REENABLE.REG in Explorer or File Manager to revert back to caching your password when logging into an NT domain (default).
More info @ MSKB.
IMPORTANT: Protect your computer against disclosure of plain text cached passwords by patching Windows 95/98/ME MPR.DLL using PassLock (freeware).
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Styles
All possible combinations are listed there. You need to highlight the "Style Name" key in the
left hand pane, followed by its value in the right hand pane. Double-click on "Style Name" and change its font name, font
size and/or font weight. Repeat this operation for all available fonts for the style you'd like to customize. There are
13 "StyleSheet_Names" settings you can modify here.
When you're done, go to this Registry key:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles
and rename the
"Default_Style_Sheet" string to show an identical value with the "Style name" key you have selected under the
Internet Explorer HKEY_LOCAL_MACHINE key above.
Now close the Registry Editor and restart Internet Explorer to
"admire" your new font/style/weight.
DOS=HIGH,UMB,NOAUTO
BUFFERSHIGH=10,0
FILESHIGH=60
LASTDRIVEHIGH=H
FCBSHIGH=1,0
STACKSHIGH=0,0
or go with the "conservative" version (let the OS do the work for you):
DOS=HIGH,UMB,AUTO
BUFFERS=11,0
FILES=60
LASTDRIVE=H
FCBS=1,0
STACKS=0,0
The AUTO switch doesn't need to be mentioned being the default.
NOTES: For more info about these new DOS 7
features read these two text files found in your Windows folder: CONFIG.TXT and MSDOSDRV.TXT.
See also
MEMORY.TXT [part of W95-11D.EXE], to learn how to MAXimize your WinDOwS memory
resources.
NOTE: You have to restart your system when changing display resolutions ONLY if you use Win95 or Win95a OSR1, but NOT with OSR2 or Win98!
WARNINGS:
For an alternative method of restarting Windows 9x WITHOUT using the "Shifted reboot", read "FAST EXIT | RESTART!", also in MYTIPS95.TXT [part of W95-11D.EXE].
UPDATES:
These are designed to optimize battery use and conserve power as well as save time
for re-starting. In light of the above experience, I think it's wise not to recommend to laptop owners to try disabling "Fast
shut down" in order to re-enable the SHIFT on RE-BOOT feature."
This update courtesy of Ojatex.
UPDATES:
SWITCHES=/E
With the value chosen here:
SWITCHES=/E:288
Windows 95/98 moves only 288 bytes from the Extended
BIOS (EBIOS) area to conventional memory.
Valid values for /E:nnnn are 48-1024.
You may gain up to 1 KB (1,024 bytes)
of free conventional memory by using this line in your CONFIG.SYS.
I have recovered 768 bytes of low memory using the
SWITCHES line in the example above.
You also need to have the lines below in your CONFIG.SYS, for this to work, to provide
Upper Memory Blocks (UMBs) to your system:
DOS=HIGH,UMB
DEVICE=C:\WINDOWS\HIMEM.SYS
You
need to adapt the /E: parameter value on your SWICHES line to your own system configuration (or start by using /E without any
parameters).
You can begin with 512:
SWITCHES=/E:512
Reboot, and then go to a DOS prompt. Now run:
MEM /C/P
You'll see that the first module loaded in memory (on your MEM screen) is
SYSTEM. Look at its conventional memory footprint. You may be able to decrease it by lowering the value on the SWITCHES=/E:
line. Decrease or increase its value in increments of 16. Reboot, and repeat the operations above (go to a DOS prompt, and
then run MEM /C/P again, etc).
Compare the new size of the SYSTEM module in low memory. If it is smaller, decrease (or
increase) the SWITCHES value again by another 16, and keep repeating these steps until you won't get any more free
conventional memory.
Keep the value that gives you a maximum free low (conventional) memory (the smallest SYSTEM module
conventional memory footprint).
There is another useful parameter to add to your SWITCHES line:
SWITCHES=/F
The /F parameter skips the 2 second delay before processing the startup files
(CONFIG.SYS and AUTOEXEC.BAT) at bootup. /F is valid for all MS-DOS versions beginning with 6.00 and including Windows
95/98/ME (a.k.a. MS-DOS 7.00/7.10/8.00).
Use both parameters on the same line (you can have only one SWITCHES line in your
CONFIG.SYS). Example:
SWITCHES=/E:288 /F
NOTE: To learn about all available "SWITCHES" command line parameters, read CONFIG.TXT (using Notepad), a text file located in your Windows folder.
Happy tweaking!
EXIT
as the LAST line to ALL your DOS BATch files that run from a Windows DOS box/session/window
to make sure they automatically return control over to the GUI (Graphical User Interface) upon completion.
If you run your
DOS BATch files by themselves or from a (tweaked) PIF shortcut, you may also want to add CLS on its own separate line,
right above the EXIT line:
CLS
EXIT
Edit your BATch files with Notepad in Windows or EDIT.COM in DOS.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Current Version\MS-DOSOptions
Create a new key called
AUTOEXEC.BAT under any of the directories/keys listed for the key above, and give it a value, typing the exact program
path and name (don't forget to type also the program's extension) you would like to include in your custom AUTOEXEC.BAT. From
now on you'll be able to use this command in your existing AUTOEXEC.BAT, to load a particular program/driver/TSR needed to
run your MS-DOS app/game.
Then you can perform the above steps again, to add similar CONFIG.SYS key(s), and
corresponding devices/drivers/TSRs.
Press F5 when done, to refresh/update your Registry settings.
HKEY_LOCAL_MACHINE\Config\0000\Display\Settings
The 0000 Registry key above might have
a different value on your system: 0001, 0002 etc. If that is the case, refer to the appropriate Registry key for your
active display settings.
Modify the "fixedfon.fon" string found in the right hand pane, and replace the default
Win95/98 display font (vgafix.fon) with the plotter, screen or system fixed font (.FON extension) you want to see in
your Notepad documents, and in all other display screens that can make use of this font type.
You can try to use any other
.FON file installed in your Windows\Fonts subfolder for that matter.
This change requires a Windows restart to see the
effect.
NOTE: I haven't tried this, but it may also work with True Type Fonts (.TTF extension). These are scalable fonts.
This is especially useful if you work with Windows 95/98's multi-language support installed, and if the selected font is bilingual. Windows 95 and OSR2 have one limitation though: you can switch from English to any other language only ONCE per session.
TIP: You may also want to try a better 3rd party replacement for Notepad, that allows you to change its display font from within the program.
Have fun.
Frequently,
computers built by PC vendors (also called OEMs = Original Equipment Manufacturers)
come with custom (OEM) Windows 95, 98, ME, NT4, 2000, XP or 2003 releases preinstalled.
You can tell by opening Control
Panel -> System -> General tab -> look at the picture in the lower left corner, usually displaying the vendor's logo and
their company name, internet address, support e-mail and/or phone number in the lower right corner. You'll also notice a
"Support Information..." button below the text area, which shows company or system details when left-clicked.
This
looks cool, but it would look even better if my own logo, name and computer specs would show up instead. :)
Easy, just
create/edit OEMINFO.INI (a plain text file located in %windir%\System on Win95/98/ME or in %windir%\System32 on
WinNT4/2000/XP/2003) with Notepad, and add/modify your own lines under these sections:
[OEMSpecific]
SubModel=Type submodel name here [may NOT display!]
SerialNo=Type serial number
here [may NOT display!]
OEM1=Type OEM1 name here [may NOT display!]
OEM2=Type OEM2 name here [may NOT
display!]
[Support Information]
Line1=Type something here
Line2=Type something
here
Line3=Type something here
.
.
.
LineX=Type something here
Make sure you type
some text on the "Manufacturer=" and "Model=" lines after the equal sign (no quotes), even if you decide to
leave the others empty, otherwise the logo (see further below) will NOT be displayed.
OEMINFO.INI supports more
than 200 lines [I have no idea of the maximum limit allowed :)] under the [Support Information] section, each numbered
correspondingly in ascending sequence, up to a maximum of 254 characters per line after the equal sign. You can even have
blank lines, or the lines can be empty themselves (after the equal sign), and all (even special ASCII) characters typed after
the first equal sign are displayed (even multiple equal signs).
Optionally you can enclose typed text with quotation
marks, they won't be displayed.
Exception: the first tab (which normally adds 8 spaces) is displayed as a single
space, but anything following the second tab is not displayed.
To disable/comment/remark a line (make it invisible) type a
semicolon (;) in front of it (just like in any other Windows INI file), and it won't be displayed anymore.
The "Support
Information" button acts like a "mini" text viewer (no editing allowed within the box though). :) Click it, and you can use
the left mouse button drag to highlight all lines, and then right-click to Copy the entire text (including the empty lines,
if any) to the Clipboard, which you can Paste into any text editor.
Then create/edit a custom OEMLOGO.BMP (a bitmap
logo, residing in the same folder as OEMINFO.INI = see above), which must be maximum 180x114 pixels in size [larger
pictures are automatically cropped (downsized) to "fit" the "window", and smaller ones are displayed with a background
surrounding them (mine is 154x114)], and must have 256 colors [RGB encoded, 24-bit color depth (16 million colors)
also allowed], in BMP format (uncompressed Windows BitMaP), you can use MS Paint (found as C:\Program
Files\Accessories\MsPaint.exe by default), the primitive but free painting program bundled with Windows or a better 3rd party utility (most are freeware).
Note that you need to fill at least 2 or 3 of
the corners (1 pixel size) of your OEMLOGO.BMP file with a "blank" color (white), to have it display properly.
The white color is shown as transparent (useful as background if the bitmap logo is smaller than 180x114).
Alternatively
you can use OEM Logo Stamper [581 KB, freeware] to customize
both OEMINFO.INI + OEMLOGO.BMP.
When you're done, just left-click your mouse once on an empty spot on your Desktop
background, and then hit F5 to refresh. Now you can open the System Properties General tab to admire your "handy" work.
:)
FYI: See OEM Logo + Info in "action".
More info:
NOTE: This is only a temporary solution for accessing the "Open with..." right-click menu. To learn how make this feature permanent, read "OPEN WITH", also in REGISTRY.TXT [part of W95-11D.EXE].
CAUTION: This FIX may crash MS IE 5.xx because its built-in graphic filters do NOT support compressed Windows Bitmaps (RLE encoded) = see "UPDATE:" further below!
To do this, fire up Regedit and go to:
HKEY_CLASSES_ROOT\Paint.Picture\DefaultIcon
Under "DefaultIcon" (Windows default using MS Paint), or whatever program your BMPs are registered to (e.g. Photoshop, Paint Shop Pro, Lview Pro, XNview, Irfan View etc), in the right hand pane, double-click on the "(Default)" String Value, and change it from:
C:\Program Files\Accessories\Mspaint.exe,1
or from (MS Plus! 95 users ONLY):
C:\Windows\System\Cool.dll,41
to read "%1" (no quotes): right-click on it ->
replace the entire text string with %1.
Add a new subkey under "Paint.Picture" and name it
"DefaultIcon" (no quotes) if not present.
"%1" tells Windows that the default icon for this file type is
found in the file itself, but since there is no icon in a BMP file, Windows creates a small preview image of the BMP for the
icon (which shows up in Windows Explorer and in all dialog boxes/menus that list files).
This FIX makes viewing and
sorting BMPs much easier.
UPDATE: "I discovered this (potential) problem: I have heard that
MS Internet Explorer 5.xx users with the Active Desktop installed should NOT activate this, as it MAY cause IE to
crash!
Although I haven't tried this [I have Windows 98 (not SE) with MS IE 5.01 with Active Desktop installed but
disabled], when I preview icons (.ICO) files which have been created in MS Paint (by specifying the size as 32x32 and saved
with the .ICO extension), they appear OK without problems."
[Thank you Neil!]
HKEY_CLASSES_ROOT\Directory\Default Icon\shell\shellex
Under "shell", add a new key
called "opennew". Modify its (Default) value to read "Open New &Window" (no quotes). Then add another key
under "opennew", call it "command", and set its (Default) value to "explorer %1".
A side effect is that
"Open New Window" will also appear now when you right-click on the Start Button, which is completely pointless because
it does that anyway. :)
UPDATE: "This hack did not work on my Win98 SE PC. After some tinkering I
found the correct solution.
To add the "Open New Window" option to the drop down menu in Win98 SE, open Regedit and go
to:
HKEY_CLASSES_ROOT\Directory\shell
Add a new key here called "opennew". Modify its
(Default) value to read "Open New &Window" (no quotes). Then add another key under "opennew", call it
"command", and set its (Default) value to "explorer %1". Close Regedit.
The above works correctly and will
add the "Open New Window" option to the right-click menus on the Start button and Folders, but it does NOT
appear on the Drives right-click menus!"
[Thank you Michael!]
"This is how to change "This Product is Licensed to: ..." without re-installing Windows 9x/ME. Run Regedit and go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
In the
right hand pane you can create/modify any of these String Values: "RegisteredOrganization", "RegisteredOwner",
and/or "ProductId" (Win95/OSR1/OSR2 only) or "ProductKey" (Win98/ME only) to read whatever your heart
desires.
Your Windows System Properties General tab will display "Registered to:/Licensed to: Your Name/Your
Company" from now on."
START /M COMMAND.COM /C %1 %2 %3 %4 %5 %6 %7 %8 %9
COMMAND.COM /C %1 %2 %3 %4 %5 %6 %7 %8 %9
ALL Windows 3.1x/9x/ME users: Look up the PATH line in your AUTOEXEC.BAT or CONFIG.SYS file (the latter supports the PATH entry ONLY IF using MS-DOS 6.xx or newer), and place MSDOS.BAT in a directory on your path, to be able to run any DOS/Windows command/program in the background. For example, running this command line from a DOS box:
MSDOS COPY C:\WINDOWS\*.INI D:\BACKUPS
copies all .INI files from the C:\WINDOWS directory (standard Win3.1x/9x/ME setup) to the D:\BACKUPS directory in the background, letting you work on other tasks in the foreground.
@ECHO OFF
START/W
"%windir%\SCANDSKW.EXE /A /N"
START/W "%windir%\DEFRAG.EXE /ALL /F /NOPROMPT"
EXIT
Save this file as
DISKTOOL.BAT, and then create a shortcut for it on your Desktop, or place it into your Startup folder, to run the disk
maintenance utilities every time you load Windows, and keep your hard drives "filthy clean".
Just make sure your MS-DOS
shortcut Properties -> Program tab (right-click to access) has the "Close on exit" box checked.
MS Plus! for Win95
and Win98/ME users can schedule any program, batch file, screen saver, Windows function etc to run periodically using System
Agent or Task Scheduler.
These are START.EXE (located in C:\Windows\Command) command line switches, displayed when
running:
START /?
from the Run box:
"Runs a Windows program or an MS-DOS program. START [options] program [arguments...] START [options] document.ext /m[inimized] Run the new program minimized (in the background). /max[imized] Run the new program maximized (in the foreground). /r[estored] Run the new program restored (in the foreground). [default] /w[ait] Does not return until the other program exits."
NOTES:
"Microsoft (R) Cabinet Extraction Tool - Version (16) 1.00.0610.0 (03/31/99)
Copyright (c) Microsoft Corp 1994-1999. All rights reserved.
EXTRACT [/Y] [/A] [/D | /E] [/L dir] cabinet [filename ...]
EXTRACT [/Y] source [newname]
EXTRACT [/Y] /C source destination
cabinet - Cabinet file (contains two or more files).
filename - Name of the file to extract from the cabinet.
Wild cards and multiple filenames (separated by
blanks) may be used.
source - Compressed file (a cabinet with only one file).
newname - New filename to give the extracted file.
If not supplied, the original name is used.
/A Process ALL cabinets. Follows cabinet chain
starting in first cabinet mentioned.
/C Copy source file to destination (to copy from DMF disks).
/D Display cabinet directory (use with filename to avoid extract).
/E Extract (use instead of *.* to extract all files).
/L dir Location to place extracted files (default is current directory).
/Y Do not prompt before overwriting an existing file."EXTRACT.EXE is a 16-bit DOS based
utility, located in the %windir%\COMMAND folder (default is C:\WINDOWS\COMMAND), and used to extract (or list) any files from
the installation CABinet files residing on your Win95/98/ME Setup CD-ROMs or floppies.
The CABinet (.CAB) file
format uses Microsoft's proprietary file compression technology, and was designed to store Windows 95/98/ME installation
files in a smaller ("shrunken"), convenient way.
These examples use EXTRACT.EXE to copy any Windows Setup file(s) from
your Win9x/ME Setup CD-ROMs/floppies (presuming your CD/DVD drive letter is D = change it if different on your
computer) to your local hard disk/partition (presuming your HD drive letter is C = change it if different on your
computer), by running these DOS commands (make sure the respective Windows Setup CD-ROM is already inserted in your CD/DVD
drive):
EXTRACT /A /L C:\EXTRACT D:\WIN95\WIN95_02.CAB *.DRV
to extract all .DRV files from all WIN95_*.CAB files to
C:\EXTRACT.
Similar procedure if using the Win95 Setup floppies (make sure the first Windows Setup floppy diskette is
already inserted in your floppy drive):
EXTRACT /A /L C:\EXTRACT A:\WIN95_02.CAB *.DRV
EXTRACT /A /L C:\EXTRACT D:\WIN98\BASE4.CAB *.DLL
to extract all .DLL files from all WIN98_*.CAB files to C:\EXTRACT.
EXTRACT /A /L C:\EXTRACT D:\WIN9X\BASE2.CAB *.VXD
to extract all .VXD files from all WIN_*.CAB files to C:\EXTRACT.
To automate the task of extracting original files (in case
they get corrupted by a system crash or overwritten by a buggy program you installed) from the CABs, I created a DOS batch
file called ECD.BAT.
From now on, whenever you need to extract a
particular file, just run:
ECD FILENAME.EXT
Replace FILENAME with the actual
name of the file you're looking for, and EXT with the respective file extension.
For example:
ECD VCOMM.VXD
extracts VCOMM.VXD to C:\EXTRACT.
WARNING:
EXTRACT.EXE is a DOS based tool and is NOT Long File Names (LFNs) compliant, NOT even in a DOS box/session inside Windows,
and ALL LFNs information will be LOST upon extraction!
Therefore you need to respect the ol' DOS 8.3 (********.***)
Short File Names (SFNs) convention when extracting a file by using EXTRACT.EXE.
Better, use EXTRAC32.EXE to
preserve the LFNs, the 32-bit Windows GUI counterpart. See "CAB EXTRACT", also in
TIPS95.TXT [part of W95-11D.EXE], for details.
EXTRACT will search ALL Windows 95/OSR2, 98/98 SE, MS
Plus! 95/98 and ME installation .CAB files from the Setup CD-ROMs [make sure the appropriate CD-ROM(s) is/are present inside
your CD/DVD drive(s) ;-)], and will extract the specified file(s) to the C:\EXTRACT folder created by ECD.BAT.
For those
who have the floppy version of Win95 (retail) Setup, use EF.BAT to extract files from the
floppy CAB files. Just make sure your first Win95 Setup floppy is inserted into your primary floppy drive (usually A) before
running EF.BAT.
You can use DOS "wild cards" (*.* or FILE*.* or *.EXT) with these batch files to extract multiple files at
the same time.
Example: to extract all *.SYS files from all *.CAB files, run:
ECD *.SYS
Another example: to extract all files starting with AB* from all *.CAB files, run:
ECD AB*.*
Or you can add multiple groups of files to extract:
ECD AB*.* *.SYS *.TXT
To see the complete list of all files contained in all CABs, run CABLIST.BAT.
CABLIST.BAT uses NOTEPAD.EXE (default Windows GUI mode text/ASCII
editor/viewer) to view the entire list of files contained in the CABinets, by creating CABLST??.TXT (plain text/ASCII) files:
You need to change your floppy drive letter in EF.BAT if other than A. Edit it with Notepad in Windows or EDIT.COM in DOS.
The first time you run ANY of these BATches, ALL 3 will be copied to your %winbootdir%\COMMAND folder (default is C:\WINDOWS\COMMAND), which is already listed on your PATH, to avoid typing unnecessary directory names at the DOS prompt, whenever using them thereafter. :)
More info: