Tips, Tricks & Tweaks - page 1

Last Updated: November 17, 2003.


Home | Links

CyberLink PowerDVD

Tweak.VBS removes unnecessary registry information that
is created after using the DVD player "CyberLink PowerDVD"

Created and tested in WinXP by Benny Pedersen, (September 2003)
Press Ctrl+A within the below text box, Copy, then Paste...


Messenger

xp_messenger_remove.vbs

Created by Doug Knox
Press Ctrl+A within the below text box, Copy, then Paste...


Image Cache

ThumbsXP.VBS find and removes unnecessary files named "Thumbs.db".
A Thumbs.db file is a hidden system file that is used as a cache for your
pictures such as JPG files and other image files.

Press Ctrl+A within the below text box, Copy, then Paste...



"WinXP.REG":

Windows Registry Editor Version 5.00

; Skip BalloonTips
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"EnableBalloonTips"=dword:00000000


; Right Click a file. PopUp Menus:
; Copy

[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Copy To]
@="{C2FBB630-2971-11d1-A18C-00C04FD75D13}"
[HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Copy To]
@="{C2FBB630-2971-11d1-A18C-00C04FD75D13}"


; Move
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Move To]
@="{C2FBB631-2971-11d1-A18C-00C04FD75D13}"
[HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Move To]
@="{C2FBB631-2971-11d1-A18C-00C04FD75D13}"


REGEDIT4
; Prevent programs from being displayed in the
; Most Frequently Used Programs List in Windows XP,
; (the big icons in the dynamic menu to the left of the Start Menu).

; When we put a DVD into the DVD Drive, it starts automatically, so why clutter the Start Menu ?
; PowerDVD. Prevent a link (shortcut).
[HKEY_CLASSES_ROOT\Applications\PowerDVD.exe]
"NoStartPage"=""

; Notepad. We better use another Text Editor, so why clutter ...
[HKEY_CLASSES_ROOT\Applications\notepad.exe]
"NoStartPage"=""

; My knowledge source for creating this REG file was found here:
; http://support.microsoft.com/default.aspx?scid=kb;en-us;284198


NoStrCmpLogical

Sorting files in Windows XP. The old way (Win9X), or the new XP way.
Ex. 4 files: 10.txt, 1.txt, 2.txt and 0.txt

"do4txtXP.BAT" (in one line, 48 (+/- 1) bytes)
You can make the four TXT files by a BATch file
in an empty folder, like this:

FOR %%F IN (10 1 2 0) DO ECHO. File%%F>>%%F.TXT


  NoStrCmpLogical
  dword:00000001 dword:00000000
Sorted by name

 0.txt
 1.txt
10.txt
 2.txt
 0.txt
 1.txt
 2.txt
10.txt
Remember, press F5 to refresh the window

"sortOrderXP.REG" (Run but remember to restart your computer)
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
"NoStrCmpLogical"=dword:00000001


; Fix problems with Word Viewer 97 + Word 2000 in Windows XP.
; Solved October 16, 2003 for Ejler N. Andersen by Benny Pedersen.
REGEDIT4
[HKEY_CLASSES_ROOT\Word.Document.8\shell]
@="Open"
@="wordview"


OOPS!

 1. The Problem 2. Exercise or Solution
I found a new security problem in Windows XP that could (most likely, already happening) delete your data. Microsoft do not know about it, so they have NOT released a patch that fixes that vulnerability. It is not a malicious hacker that delete your important data but it is a BUG. If you do not know it, then it could easily and often be a problem. You simply may lose important data from your computer. Serious stuff, so I do not hope that Microsoft will ignore such a problem. "doGif.BAT" creating three GIF files for testing:

Press Ctrl+A within the below text box, Copy, then Paste...

1. Move the 3 created GIF files into an empty folder.
2. Set the "Folder View" to view as big icons.

To make sure that a hidden file named "Thumbs.db" is created,
close the folder, [Alt+F4]. Reopen the folder.

3. Select the GIF file named "2" (use a single mouse click, or
use your arrow key(s)).

4. Drag a window using the mouse, (you may use [Ctrl+A],
or whatever, as long only the three GIF files are selected).

5. Press the [F2] key to open the "Rename Dialog Box" for the file
named "2".
When everything is correctly, "2.GIF" would now be waiting
for renaming, and the other files: "1" and "3.GIF" should be displayed
in some highlights. All three files appears as big icons.

6. Without renaming the GIF extension, now rename the file
named "2" to "img (9)".

If everything is correctly, you should now see that all three files are
GIF files and that they are renamed "img (9)", "img (10)" and "img (11)".

For each [Ctrl+Z] key, a renamed file would be unrenamed, so:
Do NOT press the [Ctrl+Z] keys.

7. Select "img (11)", then select all three files.
To open the dialog box for renaming "img (11)", press [F2].
Now, rename the "img (11)" image to a GIF file named "2".

You should now be able to see the bug.
(See a record on video (1.2 MB).

I have now recorded a new video (only 290 KB). This time without any
"Thumbs.db" files and with the Image Cache disabled and using two of
the previous images. Anyhow, an interesting discussion on the Usenet
was started. Todd Vargo said: "Apparently, the bug is that the
thumbnail cache (thumbs.db) becomes corrupt after certain multiple
file rename processes, and the only way to fix it is to regenerate the
thumbnail cache by deleting it."
-- but maybe that is not the true;
just see this small video.
A problem is that it is not possible to force the bug (sometimes the bug
and other times NOT the bug). As Todd Vago said: "It seems this bug
may be a bit inconsistent but I'm not interested in rebooting any more
to examine it any further."
- I agree. Wee have other things to do than
rebooting our computers. Anyhow, anyone who is working with pictures,
doing one of the following: post an image, uploading to the Web, or
simply handle image files such as renaming, moving, or deleting... should
be aware of that problem. If not, then you might lose important data.

Conclusion:
You could e-mail a wrong picture to someone.
If two of the same picture is found, then you could delete one of them.

Removing the cache for images, selecting: Functions, Folder Options,
and Show... would NOT deleting the cache but you can remove the
cache using the VBScript, named "ThumbsXP.VBS"

PS. It now seems that this fatal bug is hidden in another hidden cache.
Disabled cache or deleted Thumbs.db files do not solve that problem.

Benny Pedersen.
PS. If you will describe some of the above on your Homepage, or
whatever, then you are free to take (this including the two videos).


Hotfix

whatFix.VBS
Both the topic and the file is under construction.

Press Ctrl+A within the below text box, Copy, then Paste...

New version: (File extension .WSF, not .VBS)
function that(x)that=-(sgn(x)^2):end function
' Allow syntax such as: if not that( ...
Other subs/functions, which could be useful:
jsSort(arr) // Sort an array.
jsFind(x,strng) // Return True or False (as -1 or 0).
arrayOfFile(readFile) ' Put a file into an array.
writeArray(arr,writeFile) ' Write an array to a file.
run(f) ' Useful in a HTA file for running an exe.



External Links:

| Windows XP Tips | WordViewer97 | Startup_pages | Tasklist_pages |