Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How should i add a context menu entry? #780

Closed
Droyk opened this issue Dec 26, 2015 · 14 comments
Closed

How should i add a context menu entry? #780

Droyk opened this issue Dec 26, 2015 · 14 comments

Comments

@Droyk
Copy link

Droyk commented Dec 26, 2015

You are about too read some bad english. and i am really sorry about it i am not a native english speaker

Hey guys sorry if this is the not right way to ask this question

So guys the developer of Cmder said that if you want to add Cmder on your context menu then you should do this Execute .\cmder.exe /REGISTER ALL
If you get a message "Access Denied" ensure you are executing the command in an Administrator prompt.

i am trying it but it always says this
screenshot_20151226113730

plz help me gys and plz bear with i am just a normal kid so plz huh

@officialQP
Copy link

Open a CMD by searcing it in the search bar in windows, right click open as administrator and then type what he sent you with out the . maybe?

@Droyk
Copy link
Author

Droyk commented Dec 27, 2015

@officialQP commented on Dec 26, 2015, 3:18 PM GMT+5:30:

Open a CMD by searcing it in the search bar in windows, right click open as administrator and then type what he sent you with out the . maybe?

its not working it say's the same thing as cmder

@Droyk
Copy link
Author

Droyk commented Dec 28, 2015

@officialQP commented on Dec 26, 2015, 3:18 PM GMT+5:30:

Open a CMD by searcing it in the search bar in windows, right click open as administrator and then type what he sent you with out the . maybe?

I did it actually i have to do it without . & / and write it simple as this cmder.exe /REGISTER ALL

now i want to know how to get this option when you right click + shift click

@marshmallowsocks
Copy link

It's a part of the Wiki, guys..
https://github.com/cmderdev/cmder/wiki/%5BWindows%5D-%22Open-Cmder-Here%22-in-context-menu
This adds it to the context menu, standard right click will suffice.

@Droyk
Copy link
Author

Droyk commented Jan 3, 2016

@Vatsa774 commented on Dec 30, 2015, 11:25 PM GMT+5:30:

It's a part of the Wiki, guys..
https://github.com/cmderdev/cmder/wiki/%5BWindows%5D-%22Open-Cmder-Here%22-in-context-menu
This adds it to the context menu, standard right click will suffice.

actually i did it with this method cmder.exe /REGISTER ALL and i tried your method too but
what i really want is an entry when i press shift + right click . that's the only thing i want

@71
Copy link

71 commented Jan 3, 2016

Add the string value "Extended" to [HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder], so it looks like this:
capture

If you want the .reg file to do it, it's pretty simple: (note that this is not my own .reg export, but the one from the wiki).

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
@=hex(2):25,00,43,00,4d,00,44,00,45,00,52,00,5f,00,49,00,4e,00,\
  53,00,54,00,41,00,4c,00,4c,00,5f,00,44,00,49,00,52,00,25,00,5c,00,43,00,6d,\
  00,64,00,65,00,72,00,2e,00,65,00,78,00,65,00,20,00,2f,00,53,00,54,00,41,00,\
  52,00,54,00,20,00,22,00,25,00,76,00,22,00,00,00

If you want mine instead (there's an icon, and you choose the directory without modifying your PATH, here it is:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\cmder]
@="Open Cmder here"
"Icon"="\"C:\\Path\\To\\Cmder.exe\",0"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\cmder\command]
@="\"C:\\Path\\To\\Cmder.exe\" /start \"%V\""

[HKEY_CLASSES_ROOT\Directory\background\shell\cmder]
@="Open Cmder here"
"Icon"="\"C:\\Path\\To\\Cmder.exe\",0"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\cmder\command]
@="\"C:\\Path\\To\\Cmder.exe\" /start \"%V\""

Note: The first key (HKEY_CLASSES_ROOT\Directory\shell\cmder) adds "Open Cmder here" to the context menu when right-clicking on a folder, and the second key (KEY_CLASSES_ROOT\Directory\background\shell\cmder) adds "Open Cmder here" to the context menu when right-clicking on the background of the directory.
You can simply delete "Extended"="" if you don't want to press SHIFT when right-clicking.

@Droyk
Copy link
Author

Droyk commented Jan 3, 2016

@aedotj commented on Jan 3, 2016, 5:03 PM GMT+5:30:

Add the string value "Extended" to [HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder], so it looks like this:

capture

If you want the .reg file to do it, it's pretty simple: (note that this is not my own .reg export, but the one from the wiki).

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
@=hex(2):25,00,43,00,4d,00,44,00,45,00,52,00,5f,00,49,00,4e,00,\
  53,00,54,00,41,00,4c,00,4c,00,5f,00,44,00,49,00,52,00,25,00,5c,00,43,00,6d,\
  00,64,00,65,00,72,00,2e,00,65,00,78,00,65,00,20,00,2f,00,53,00,54,00,41,00,\
  52,00,54,00,20,00,22,00,25,00,76,00,22,00,00,00

If you want mine instead (there's an icon, and you choose the directory without modifying your PATH, here it is:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\cmder]
@="Open Cmder here"
"Icon"="\"C:\\Path\\To\\Cmder.exe\",0"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\cmder\command]
@="\"C:\\Path\\To\\Cmder.exe\" /start \"%V\""

[HKEY_CLASSES_ROOT\Directory\background\shell\cmder]
@="Open Cmder here"
"Icon"="\"C:\\Path\\To\\Cmder.exe\",0"
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\cmder\command]
@="\"C:\\Path\\To\\Cmder.exe\" /start \"%V\""

_Note: The first key (HKEY_CLASSES_ROOT\Directory\shell\cmder) adds "Open Cmder here" to the context menu when right-clicking on a folder, and the second key (KEY_CLASSES_ROOT\Directory\background\shell\cmder) adds "Open Cmder here" to the context menu when right-clicking on the background of the directory.

You can simply delete "Extended"="" if you don't want to press SHIFT when right-clicking._

Really Thanxx about this and there is one more question i want to ask you is can this all be done via command for e.g. this command does everything cmder.exe /REGISTER ALL but the only thing is i want this in right click + shift mode .....so can this be done via command ............. i just want this function via shift + right click with the help of command can you plz help me with this thanxx.....

@71
Copy link

71 commented Jan 5, 2016

@Droyk Not sure I understand. If you wanna register everything with a command (such as REG), yes you can, but it would be harder than just using a .reg file. Open up your console, and type REG /?.

This is, I believe, the best way to deal with the registry via the command line.

@Droyk
Copy link
Author

Droyk commented Jan 6, 2016

@aedotj commented on Jan 6, 2016, 2:44 AM GMT+5:30:

@Droyk Not sure I understand. If you wanna register everything with a command (such as REG), yes you can, but it would be harder than just using a .reg file. Open up your console, and type REG /?.

This is, I believe, the best way to deal with the registry via the command line.

actually i am not saying to deal with registry at all what i am saying is just to use command to hide the option in context menu and show the option when right click + shift ..........

for e.g. cmder.exe /REGISTER ALL if you paste this command in cmder it will show the option in the context menu. what i want is to enhance this command to hide when a user click right click and to show when a user press shift + right click .that's what i really want

@esphas
Copy link

esphas commented Jan 6, 2016

Add the string value Extended via regedit mannually is enough to make command Cmder Here only appears in shift right click.

But if you are looking forward to a solution that solves the problem via command line, I have to say: that's simply impossible yet. As you can see, the RegisterShellMenu won't register more in registry (L189-L203). (Even the same in release-1.3: L216-L230)

Maybe they will add that feature later on?

@Droyk
Copy link
Author

Droyk commented Jan 6, 2016

@esphas commented on Jan 6, 2016, 9:39 AM GMT+5:30:

But if you are looking forward to a solution that solves the problem via command line, I have to say: that's simply impossible yet. As you can see, the RegisterShellMenu won't register more in registry (L189-L203). (Even the same in release-1.3: L216-L230)

Maybe they will add that feature later on?

but what about the simple windows CMD ?

I think windows cmd or powershell can help us on that

@esphas
Copy link

esphas commented Jan 6, 2016

@Droyk Oh I thought you want to do it someway like cmder.exe /register /ex all...

Since you just need to run it via command line, that's simple: Run cmd or anything like that as Administrator, then:

reg add hkcr\directory\shell\cmder /v Extended
reg add hkcr\directory\background\shell\cmder /v Extended

This should work.

@Droyk
Copy link
Author

Droyk commented Jan 6, 2016

@esphas commented on Jan 6, 2016, 10:03 AM GMT+5:30:

@Droyk Oh I thought you want to do it someway like cmder.exe /register /ex all...

Since you just need to run it via command line, that's simple: Run cmd or anything like that as Administrator, then:

reg add hkcr\directory\shell\cmder /v Extended
reg add hkcr\directory\background\shell\cmder /v Extended

This should work.

thanxxx i knew it's possible but when i see other responses i was depressed and thought you can't just add that using the command line tool.....thanxxx.......for telling me

actually it is bit of my fault because of bad english. and i am really sorry about it i am not a native english speaker its only been 2 months since i started learning English and right-now i can only read and understand it properly but i can't write properly Poor me

@Droyk Droyk closed this as completed Jan 6, 2016
@snowmaniowa
Copy link

Worked like a charm. Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants