China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 22:33
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to add a right-click menu in batch processing? View 8,838 Replies 33
Floor 31 Posted 2006-10-02 11:22 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
About the issue of "select all". The previously given reg script is not user-friendly for select all because you have to click on a file with the mouse to get the menu. Today, I'm posting a new one where you can right-click in the blank area to pop up the select all option.


Windows Registry Editor Version 5.00


@="{00000000-0000-0000-0000-000003742668}"




@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
64,00,6f,00,63,00,76,00,77,00,2e,00,64,00,6c,00,6c,00,00,00


"CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"




"method"="ShellExecute"
"Param1"="E:\\Scripts\\vbs\\Select All.vbs"
"command"="Select All(&A)"
"CLSID"="{13709620-C279-11CE-A49E-444553540000}"


The code part of the vbs script remains unchanged. Note that the path in the third - to - last line of the effective data in the reg script is changed to the path where your script is located.
Floor 32 Posted 2006-10-02 22:44 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 245
Posts 103
Joined 2006-06-30 00:00
20-year member
UID 57801
Gender Male
Status Offline
The power of moderator 3742668 is really something to make me look up to!!!
I actually most want is to have the "inverse selection" option appear in the right-click when clicking on a file or folder during operations in Windows Explorer. As for selecting all, it's optional because you can use CTRL+A.
The reason I want to achieve this function in the right-click is because I saw such a function on a friend's XP system two years ago. I didn't delve into it at that time, and now I can't find it, so I'm here to ask all the great people. I estimate his system must have been processed and packaged, because with his skills, he couldn't have achieved such an effect by himself, so please all give pointers... Thank you...
Is it generally under the above registry key, HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers, for the general context menu operations for files and folders?
Floor 33 Posted 2006-10-06 12:59 ·  中国 黑龙江 哈尔滨 联通
初级用户
Credits 41
Posts 16
Joined 2006-10-01 23:45
19-year member
UID 64267
Status Offline
The effect did not achieve the expected goal...
Floor 34 Posted 2007-07-09 20:32 ·  中国 广西 柳州 电信
初级用户
Credits 28
Posts 13
Joined 2007-01-27 03:34
19-year member
UID 77799
Gender Male
Status Offline
Excuse me, moderator 3742668.

How to add several more options when right-clicking in the blank area?

My original right-click menu in the blank area had an item "Show/hide system files and extensions".

I originally wanted to add a "Select all" but it didn't show up. I have to delete the "Show/hide system files and extensions" item to make it work.

Since I couldn't find relevant information, I posted a reply.
Forum Jump: