This workaround uses Registry hack and XY's command line switch /script to create right-click context menus for folders, files or simply white space inside XYplorer's list.
Note: Below material was gathered from this link from How-to-Geek.
All credits to that post, I am just rephrasing most of that here.
For what its worth here's the disclaimer:
Requires editing Registry. Try this at your own risk.
That said its a pretty harmless tweak and can be reversed easily.
So how to add any XYplorer script to your right-click menu:
For any file type:
1) Go to registry
2) Navigate to HKEY_CLASSES_ROOT\*\shell
3) Right-click on the shell folder and click New>Key
4) There will be a new folder under shell now. Rename it to whatever you want to see in the right-click menu. I will call it "XY greetings"
5) Now right-click on "XY greetings" folder and click New>Key. Again you will see a new folder, rename that as "command".
6) Click on command folder and on the right window you will see a "Default" file.
The folder structure so far is HKEY_CLASSES_ROOT\*\shell\XY greetings\command and file is Default
7) Double click on Default file and in the Value data field paste XY's executable file including path followed by script you want to run.
Example script:
Code: Select all
"C:\\Program files\\XYplorer\\XYplorer.exe" /script="::msg 'Welcome to XY!';" /flg=2An example with xys script file:
Code: Select all
"C:\\Program files\\XYplorer\\XYplorer.exe" /script="::load Teracopy, copy" /flg=2Same steps as above but inside: HKEY_CLASSES_ROOT\Directory\shell
For anywhere else in the list (white area):
Same as above but here: HKEY_CLASSES_ROOT\Directory\Background\shell
Note: you have to have this tweak enable for white area context meny
Code: Select all
; Tweak: 0=Edit menu, 1=Folder's shell menu, 2=Favorites, 3=reserved, 4=Tabs
CEA_ListRightClickOnWhite=1This is bit more longish, you are better off following this post see under "Specific File Types" which has nice images to explain how to do it.
Also, you can make the item appear in the right-click menu only when holding Shift key. After step 5 above the folder structure will be HKEY_CLASSES_ROOT\*\shell\XY greetings. Click on XY greeting folder and on the right window create a new string: right-click>New>String Value and name it "Extended". That's it, now XY greetings will appear on when holding Shift key.
Works great here on Windows 7 32-bit and 64-bit OS.
How to use /script switch:
::rtfm "idh_commandlineswitches.htm"
Update: Once you create one set of keys in registry, you can export it and edit the .reg file and keep adding more items to your menu quickly.
XYplorer Beta Club