%windir%\SYSTEM\REGSVR32.EXE /I %windir%\SYSTEM\SHDOCVW.DLL
Then [MS IE 5 users ONLY!]:
%windir%\SYSTEM\REGSVR32.EXE /I %windir%\SYSTEM\SHDOC401.DLL
And then:
%windir%\SYSTEM\REGSVR32.EXE /I %windir%\SYSTEM\MSHTML.DLL
This will register the Microsoft Internet Explorer 4/5 "Shell Doc Object and Control
Library" with Windows 9x, and will reenable the thumbnail preview of graphic files (.BMP, .GIF, .JPG) and the right-click
context menu when using the Active Desktop feature.
Note that you HAVE to type the full path, file name and file extension
to the file you want registered. File names and parameters are case insensitive.
If the operation was succesful, you'll
get a confirmation message like:
"DllRegisterServer in C:\Windows\System\shdocvw succeeded."
Other examples:
%windir%\SYSTEM\REGSVR32.EXE %windir%\SYSTEM\OLEAUT32.DLL
%windir%\SYSTEM\REGSVR32.EXE %windir%\SYSTEM\CACHEVU.DLL
%windir%\SYSTEM\REGSVR32.EXE %windir%\SYSTEM\ACTXPRXY.DLL
and then:
%windir%\SYSTEM\REGSVR32.EXE /I %windir%\SYSTEM\SHDOCVW.DLL
If Regsvr32.exe is not present in
your C:\Windows\System folder, you need to extract it from your Win9x Setup CD or MS IE 4/5 Setup .CAB files.
Pop in your
Win9x Setup CD and run (assuming your CD/DVD drive letter is D):
EXTRACT /L %windir%\SYSTEM /Y D:\WIN98\WIN98_42.CAB REGSVR32.EXE
EXTRACT /L %windir%\SYSTEM /Y D:\WIN95\WIN95_20.CAB REGSVR32.EXE
This will copy Regsvr32.exe to C:\Windows\System (assuming your Win9x folder name is C:\Windows).
REGSVR32.EXE info @ MSKB.
Another way of registering a control is to right-click on a .DLL
(.OCX or .TLB for this matter) file in Explorer -> select "Open with..." -> browse to Regsvr32.exe and highlight it ->
check the "Always use this program to open this type of file" box -> click OK (or hit Enter). This will create a permanent
association of ALL your DLLs (Dynamic Link Libraries) with Regsvr32.exe.
From now on you can register ANY unregistered DLL
just by double-clicking on it in Explorer or File Manager.
A third method is to create a DOS batch file using Notepad, containing these lines:
@ECHO OFF
%windir%\SYSTEM\REGSVR32.EXE /S
%windir%\SYSTEM\%1
CLS
EXIT
Save it as REGISTER.BAT (or whatever name you want, but keep the .BAT extension) in a folder on your path, and then just run something like:
REGISTER SHDOCVW.DLL
This
applies ONLY to files located in C:\Windows\System, but most controls are (and should be) located in the System
subfolder.
To "undo" this action (unregister a control or library), run (example):
%windir%\SYSTEM\REGSVR32.EXE /U %windir%\SYSTEM\SHDOCVW.DLL
Similarly, to unregister a file by using a batch file, copy these lines into a new file in Notepad:
@ECHO OFF
%windir%\SYSTEM\REGSVR32.EXE /U
%windir%\SYSTEM\%1
CLS
EXIT
and save it as UNREG.BAT in a folder on your path.
Then run
(example):
UNREG SHDOCVW.DLL
Note that you can run these batch files ONLY from a Windows 9x DOS
session/box, NOT from the native/real/true/pure MS-DOS mode.
To learn how to use all Regsvr32 command line parameters, run it by
itself:
REGSVR32
UPDATE: "There is a much simpler way to register controls
via the GUI, by using Xteq Systems' (makers of X-Setup) freeware
utility named Xteq COM Reg Extension, which allows running REGSVR32 without a command line:
Complete info and screen shots page.
Direct download [8 KB]."
This update courtesy of The
Captain.
UPDATES:
"To switch back to multiple column lists in the Start button Menus:
NOTE: If this doesn't work, create StartMenuScrollPrograms as String Value -> hit Enter -> right-click on it -> click Modify -> in the Value Data box type false (case insensitive) -> click OK.
It should not be necessary to restart Windows. When you click the Start
button and then Programs, your menu should now show multiple columns side by side, instead of a single column with top and
bottom scrolling arrows, assuming you have a Programs list longer than your Desktop screen height, otherwise your menus won't
look any different. :)
To revert back to Windows default (scrolling Start Menu list), just delete the
StartMenuScrollPrograms Value."
FYI: See also "TOGGLE MENUS", also in REGISTRY.TXT [part of W95-11D.EXE].
"Multiple file extension search in Windows 9x/NT4/2000/ME:
*.exe;*.com
FYI: To select multiple drives to search on, type in something like:
C:\;D:\;E:\
in the "Look in" command box, and make sure the "Include subfolders" box
is checked.
Note that consecutive file names/drive letters MUST be each separated by a semicolon (;).
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar
Look in the right hand pane for the "BackBitmap" String (IE4).
"BackBitmap"="C:\PICS\MYPIC.BMP"
then IE4's Toolbar is "branded" ("customized").
To
replace IE4's bitmap: double-click on "BackBitmap" -> type in the graphic path and name of your choice -> click
OK.
MS IE 5/6 users need to modify the "BackBitmapIE5" String instead.
The ONLY supported graphic file format is
.BMP (Windows Bitmap).
MS IE 5/6 USERS
ONLY: Download and install the Toolbar Wallpaper web accessory
[170 KB, free, unsupported], one of the IE
5/6 Power Toys.
From now on you can change your IE 5/6 background bitmap by clicking on its Tools menu -> select
Toolbar Wallpaper -> Browse to your favorite .BMP file -> click OK -> restart IE.
NOTE: The background bitmap is NOT displayed when IE runs in full screen (kiosk) mode. Press F11 to toggle between window and full screen.
To further customize your MS IE interface, see "BRANDED MS IE", also in REGISTRY.TXT [part of W95-11D.EXE].
FYI:
NOTE: This feature works ONLY IF Active Desktop (Web View) is installed.
Now let's presume some day you get bored with this new arrangement, and would like to restore the entire Startup menu back the old fashion way: listed alphabetically. You can do this [again :(] manually, dragging them one at a time, or much easier, by editing the Registry. Run Regedit and go to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Menu
to restore the Start Menu folder listing, then to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\&Programs\Menu
to restore the Programs folder listing, then to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Favorites\Menu
to
restore the Favorites folder listing etc... You get the idea. :)
Look in the right hand pane for a Binary value
called "Order". Right-click on it and select Delete, or highlight it and press Del. Then click OK or press Enter to
confirm.
Exit the Registry Editor and restart Windows when done. It will scan the Registry and recreate the default
"Order" values (alphabetical listing) next time it starts. To rearrange any icon/folder again, just drag & drop the
desired item into a new position. This way you can even move them among folders.
That's it.
CAUTION: BACKUP YOUR REGISTRY FILES BEFORE MAKING ANY CHANGES!
See these MSKB articles for more details:
UPDATE: "SortMenu (freeware program) forces Windows 98/ME to
sort the Start Menu whenever you want or every time Windows starts."
This update courtesy of Diego.
The first two options
above require the user to reinstall ALL apps/programs from scratch (after installing the OS), because that information is NOT
retained in the newly created Registry.
If you opt for just a "refresh" reinstall (method 3 above), to eventually solve
driver/hardware conflicts, replace corrupted system files, or/and system configuration errors, then ALL custom settings and
app info/entries will be preserved into the Registry.
This also redetects all hardware devices, and installs the
appropriate (i.e. your vendor provided) drivers, but it will NOT dispose of orphaned/corrupted files in your C:\Windows and
C:\Windows\System folders (presuming you have used the default directory name for your previous Win9x installation). To
replace older/corrupted files, you need to apply the workarounds detailed below.
Also, this restore procedure may or MAY
NOT succeed, depending on too many factors, mainly hardware settings changes. Therefore if this "refresh" install fails, you
should be prepared to either do a "clean" install (including reformatting your drive/partition), or make a FULL SYSTEM
BACKUP beforehand, to be able to restore the OS to its previous working state.
The "full system backup" procedure
requires that you have enough room on your drive/partition for another ENTIRE Win9x copy. If you do, open Explorer,
and copy your Windows folder to another destination (preferably another hard disk/partition, for a quick restore). If you
don't:
DEVICE=A:\CDROM.SYS /D:MYCDROM
A:\MSCDEX /D:MYCDROM
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class
HKEY_LOCAL_MACHINE\Enum
MOVE/Y %winbootdir%\INF %winbootdir%\INFOLD
MOVE/Y %winbootdir%\SYSTEM\IOSUBSYS
%winbootdir%\SYSTEM\IOSUBOLD
MOVE/Y %winbootdir%\SYSTEM\VMM32 %winbootdir%\SYSTEM\VMM32OLD
DELTREE/Y
%winbootdir%\INF
DELTREE/Y %winbootdir%\SYSTEM\IOSUBSYS
DELTREE/Y %winbootdir%\SYSTEM\VMM32
MOVE/Y
%winbootdir%\INFOLD %winbootdir%\INF
MOVE/Y %winbootdir%\SYSTEM\IOSUBOLD %winbootdir%\SYSTEM\IOSUBSYS
MOVE/Y
%winbootdir%\SYSTEM\VMM32OLD %winbootdir%\SYSTEM\VMM32
ATTRIB -H -R -S %winbootdir%\SYSTEM.DA*
ATTRIB -H -R -S
%winbootdir%\USER.DA*
DEL %winbootdir%\SYSTEM.DA*
DEL %winbootdir%\USER.DA*
COPY/Y E:\BACKUPS\SYSTEM.DA*
%winbootdir%
COPY/Y E:\BACKUPS\USER.DA* %winbootdir%
COPY/Y E:\BACKUPS\*.INI %winbootdir%
NOTE: To decrease OS installation time, you can (if your disk space allows) copy ALL contents of the \WIN95 (if installing Win95/OSR2) or \WIN98 (if installing Win98/98 SE) folder on your Setup CD to a new directory on your hard disk, you can (re)install, and even recover files later from.
UPDATE: "For many old "ini" type apps, reinstall can often be avoided in case #1 + #2, if the app is run
from a portable drive [or its own folder on C:\ in case #2] -- just save the "ini" file [and any other miscellaneous files
belonging to that app] in the Windows folder before the reinstall, then replace the "ini" after reinstall. Sometimes there
may be an old dll that gets lost.
Also make sure you have a copy of any older "proprietary" driver that doesn't have a
recent substitute."
[Thank you Ojatex!]
"This is yet another way to get rid of the
"Shortcut to" text when you create a new shortcut:
Create 1 shortcut and then remove the "Shortcut to" text
(rename it), then delete that shortcut. Do this 8 times in a row, and Windows will learn that you don't like it, and will no
longer add the "Shortcut to" string to your shortcuts.
This works with ALL Windows 9x releases."
UPDATE: "This technique works fine, until you reboot."
[Thank you
Martin!]
"If you have the DOSWINKEY MS Kernel Toy add-on for Windows 95 installed, it will prevent the Windows key on Win9x keyboards from functioning while the Desktop (not the Taskbar or any other app) is the active box or part of the screen."
DOSWINKY can be downloaded as part of Microsoft Kernel Toys for Windows
95/OSR1/OSR2 [57 KB, free, unsupported].
Read the DOSWINKY guidelines: right-click on DOSWINKY.INF -> click
"Open with..." -> select Notepad.
To setup DOSWINKY: right-click on DOSWINKY.INF -> select
Install.
CAUTION: DO NOT install MS Kernel Toys IF using Windows 98/ME!
"My tip is how to make a folder that most versions of
Windows 9x/ME have trouble opening (useful for security purposes though).
When creating a folder, give it a name, and add
0255 to the name (these are ASCII characters), by holding down the Alt key and punching those numbers on the keypad.
When you hit Enter, the name will look something like "Folder_" (without quotes). If you (double)-click that new
folder, you'll get an error message.
An added feature is that DOS is able to access this folder with no trouble.
I've
found no version of Windows 95 that can address this type of folder, but there are versions of Windows 98 that can. I have
not tried this with WinNT."
UPDATES:
KNOWN BUG:
Microsoft acknowledged that you canNOT select multiple files/folders to drag and drop into the SendTo folder, and that whenever you select more than one file/folder, the Send To option is absent from the right-click drop down menu.
WORKAROUND:
Select only one file/folder at a time and drop it into the SendTo folder.
FIXES:
-----Begin cut & paste here-----
REGEDIT4
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Send To]
@="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
[HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\Send To]
@="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Send To]
@="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
[HKEY_CLASSES_ROOT\AllFilesystemEditObjects\shellex\ContextMenuHandlers\Send To]
@="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
------End cut & paste here------This way the right-click SendTo menu can be used for multiple files, folders, and even drives/partitions.
"Do you want to send FileName.ext/FolderName to Recycle Bin?"
But you can choose any other directory as your "Send To" target, such as a temp(orary) directory.
Also, if
you have different places to send a file to but they are related, such as:
MyDocs
|-
Document1
|- Document2
|- etc...
you can create an additional subfolder under the SendTo folder
(NOT a shortcut!) called "MyDocs" (no quotes). Then open this new folder and place there the shortcuts to all your
documents' individual folders and make sure to name them appropriately. From now on, when you right-click a file icon, your
"Send To" right-click menu will show the new "MyDocs" submenu (which allows you to move files to it) and you will see there
another submenu containing all your documents' shortcuts.
Also, you can remove the annoying "Shortcut to" text from your
icons in the SendTo folder by renaming them.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
Here you can add/remove
the commands you want.
To create a new command: right-click on an empty spot, select String, name it using a letter
between a and u (Win9x allows a maximum of 20 RunMRU entries), double-click on it, type in the command line you
want (including the full path to your program), and finally click OK or press Enter. Make sure not to name your new entry
using an existing name (but Win9x won't allow it anyway). :)
To delete an existing command: highlight the String you want
(from a to u), right-click on it and select Delete (or press Del), and finally click OK or press Enter.
Open Notepad.
Type a space
(blank), don't enter any other characters, and save this file as WIN.BAT in the root directory of your boot drive
(default is C:\).
When you reboot into Windows 9x, the OS will "see" the empty WIN.BAT file and will automatically boot to
the native/real/true/pure MS-DOS mode prompt.
When you're done "playing" in DOS, just type WIN.COM and press Enter to start the
Win9x GUI. It is IMPORTANT to type the WIN.COM file extension for this to work! Typing only WIN not followed by the
.COM extension will automatically default to WIN.BAT.
UPDATE: "It just starts WIN.BAT if
you are in that folder. Yes, I know that .COM files are processed first, but the current directory is processed before the
%PATH% by default. To make the %PATH% variable process earlier, one has to add a semicolon (;) to the end of the PATH line in
AUTOEXEC.BAT or CONFIG.SYS."
This update courtesy of Yuri.
HKEY_CLASSES_ROOT
Below the file
extension key of your choice you need to add a new key called "ShellNew" (no quotes).
Now you have two options: to
start with either a null file (0 Bytes, default template with no preset styles), or with a template file.
To start with a
null file, insert a new String called "NullFile" (no quotes, no extension) under the ShellNew key, and leave its value
blank.
To use a template file, insert a new String named "FileName" (no quotes, no extension) and set its value to
match the path of your "incriminated" data file or document.
The template files reside by default in the hidden
ShellNew subfolder beneath your Windows 9x directory. To "see" it, you need to enable the view of Hidden and System
files in Explorer. You can also place there the templates of your choice. Some Win9x apps give you the option (when you first
install them) to add their own template(s) to the ShellNew subdirectory.
From now on when you select the New right-click
menu, Win9x will copy the template file to the ShellNew subfolder, or create a null file.
TIP: You
can disable or completely remove the templates you want (and much more) by using Microsoft TweakUI Power Toy [110
KB, free, unsupported].
Right-click on TweakUI.inf -> select Install -> then (double)-click the new
TweakUI icon in the Taskbar tray -> click the New tab -> check/uncheck the desired template(s) to prevent them
from being listed on the New menu, or/and highlight the one(s) you want and click the Remove button.