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 to open It in working directory? #1422

Closed
rsa408 opened this issue Jun 28, 2017 · 4 comments
Closed

How to open It in working directory? #1422

rsa408 opened this issue Jun 28, 2017 · 4 comments

Comments

@rsa408
Copy link

rsa408 commented Jun 28, 2017

I used this "c:\cmdr\Cmder.exe" "--cd=%1" command in windows 10 registry to add shortcut to right click menu to open in each folder I want. But it was opening only in this path. c:\users\myname how can i solve it?

@goutkannan
Copy link

Look into Settings --> Startup menu options for achieving it.

image

@rsa408
Copy link
Author

rsa408 commented Jul 13, 2017

right answer :
#91 (comment)

@rsa408 rsa408 closed this as completed Jul 13, 2017
@alexeyp0708
Copy link

alexeyp0708 commented Feb 24, 2019

create bat files in catalog bin
and run as administratror
.\bin\add_in_context.bat

reg add "HKEY_CLASSES_ROOT\Directory\shell\Cmder" /ve /t REG_SZ /d "Open console" /f
reg add "HKEY_CLASSES_ROOT\Directory\shell\Cmder" /v "Icon" /t REG_SZ /d "%~dp0..\Cmder.exe" /f 
::reg add "HKEY_CLASSES_ROOT\Directory\shell\Cmder" /v "Position" /t REG_SZ /d "Bottom" /f
reg add "HKEY_CLASSES_ROOT\Directory\shell\Cmder\command" /ve /t REG_SZ /d "%~dp0..\Cmder.exe /start \"%%V\"" /f

reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder" /ve /t REG_SZ /d "Open console" /f
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder" /v "Icon" /t REG_SZ /d "%~dp0..\Cmder.exe" /f 
::reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder" /v "Position" /t REG_SZ /d "Bottom" /f
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command" /ve /t REG_SZ /d "%~dp0..\Cmder.exe /start \"%%V\"" /f

reg add "HKEY_CLASSES_ROOT\Drive\shell\Cmder" /ve /t REG_SZ /d "Open console" /f
reg add "HKEY_CLASSES_ROOT\Drive\shell\Cmder" /v "Icon" /t REG_SZ /d "%~dp0..\Cmder.exe" /f 
::reg add "HKEY_CLASSES_ROOT\Drive\shell\Cmder" /v "Position" /t REG_SZ /d "Bottom" /f
reg add "HKEY_CLASSES_ROOT\Drive\shell\Cmder\command" /ve /t REG_SZ /d "%~dp0..\Cmder.exe /start \"%%V\"" /f

.\bin\add_in_context_as_admin.bat

reg add "HKEY_CLASSES_ROOT\Directory\shell\runas" /ve /t REG_SZ /d "Open console as admin" /f
reg add "HKEY_CLASSES_ROOT\Directory\shell\runas" /v "Icon" /t REG_SZ /d "%~dp0..\Cmder.exe" /f 
::reg add "HKEY_CLASSES_ROOT\Directory\shell\runas" /v "Position" /t REG_SZ /d "Bottom" /f
reg add "HKEY_CLASSES_ROOT\Directory\shell\runas\command" /ve /t REG_SZ /d "%~dp0..\Cmder.exe /start \"%%V\"" /f

reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\runas" /ve /t REG_SZ /d "Open console as admin" /f
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\runas" /v "Icon" /t REG_SZ /d "%~dp0..\Cmder.exe" /f 
::reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\runas" /v "Position" /t REG_SZ /d "Bottom" /f
reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command" /ve /t REG_SZ /d "%~dp0..\Cmder.exe /start \"%%V\"" /f

reg add "HKEY_CLASSES_ROOT\Drive\shell\runas" /ve /t REG_SZ /d "Open console as admin" /f
reg add "HKEY_CLASSES_ROOT\Drive\shell\runas" /v "Icon" /t REG_SZ /d "%~dp0..\Cmder.exe" /f 
::reg add "HKEY_CLASSES_ROOT\Drive\shell\runas" /v "Position" /t REG_SZ /d "Bottom" /f
reg add "HKEY_CLASSES_ROOT\Drive\shell\runas\command" /ve /t REG_SZ /d "%~dp0..\Cmder.exe /start \"%%V\"" /f

@skironDotNet
Copy link

Change your task signature, so this screen is ok (see next picture)

image

then go task and change %USERPROFILE% to %CD%

image

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

4 participants