Monday, July 23, 2012

New Folder Context Menu

http://billsway.com/vbspage/
http://billsway.com/vbspage/vbsfiles/NewFolder.zip
http://www.google.com/#q=fldrjazz.zip

Traditionally missing from XP and earlier is a right-click context menu option for folders to create a new subfolder.  For years I've been using FolderJazz, an abandoned program that is now difficult to find if you don't know the short name "fldrjazz.zip". The ZIP has three files, including an EXE for which the source is unavailable. The original website and company are both gone.

Though I still trust FolderJazz implicitly, I found that Bill James has developed (a decade ago) an elegant single all-in-one VBS that provides exactly the same functionality in a single WSH 2.0 file that installs the menu, uninstalls, and gets called to make the folder. And it's easier remembering "billsway" than finding one of the ever-dwindling copies of FolderJazz.

Tuesday, July 10, 2012

DOS batch string manipulation

http://www.dostips.com/DtTipsStringManipulation.php

And there's also command processor batch file variable manipulation, similar to BASIC language string functions. Check the link for more examples. Who knew?!

Left$(envvar,5)=%envvar:~0,5%
Right$(envvar,5)=%envvar,~-5,5%
Mid$(envvar,3,2)=%envvar,~3,2%
Repl(envvar,"old","new")=%envvar:old=new%
(Remove envvar first 2 chars and last 3 chars) = %envvar:~2,-3%


Disable Autorun

http://support.microsoft.com/kb/967715
http://windowssecrets.com/top-story/one-quick-trick-prevents-autorun-attacks/
http://nickbrown-france.blogspot.com/2007/10/memory-stick-worms.html

Tired of receiving 2 popups every time I attach my VZW phone to USB to charge,  this file "NoAutoRun.reg " covers a few methods of disabling Autorun:


REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:000000ff
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
"HonorAutoRunSetting"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@=”@SYS:DoesNotExist”

It's recommended to reboot after merging....