2015-01-16 5 views
0
당신이 Ctrl 키 + 시프트 + 를 눌러 탐색기에서 명령 프롬프트를하는 것처럼 PowerShell을 열고 일부 레지스트리 키를 만들려고 한

에서 열기 PowerShell을 마우스 오른쪽을 클릭합니다.여기 배경 디렉토리

나는 컨텍스트 키가 여기에 만든이 :

<code>HKLM\Directory\Background\shell\Powershell</code>

하지만 값은 내가 여기에 넣어 : 내가 클릭하면

<code>HKLM\Directory\Background\shell\Powershell\command</code>

가 오류를 반환 Open PowerShell here

"Open PowerShell here" context menu Error message: "This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel."

몇 가지 문자열 값을 시도했지만 비슷한 결과가 나타납니다. 누구든지 백그라운드 디렉토리 키를 사용하여 이것을 수행 했습니까? 그렇다면 어떻게 했습니까?

답변

2

%1 대신 %V을 사용해야합니다. 그래서 같은

변경 기본값 :

"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoExit "cd '%V'" 
+0

브릴리언트 감사합니다. – Timmo