<p>When extending the Windows’ shell context menu (e.g. for adding an ‘Open command here’ prompt on directories), a ‘command’ key needs to be created in le registre.</p>
<p>The value of this ‘command’ key apparently can be any valid ligne de commande.</p>
<p>Je veux know which ‘special variables’ are available for use inside this ligne de commande.</p>
<p>Par exemple, I use following command for opening a cmd window from within a directory’s context menu (*):</p>
<pre><code class="lang-auto">cmd.exe /e:on /f:on /s /k pushd "%V"
</code></pre>
<p>I cannot find any reference to what <code>%V</code> actually means or what the full list of such variables is.</p>
<p>(*)<br>
Following registry keys are created for this:</p>
<pre><code class="lang-auto">[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmdshell]
@=Open Command Prompt Here"
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmdshell\command]
@="cmd.exe /e:on /f:on /s /k pushd \"%V\""
</code></pre>
<hr>
<p><em>Source : <a href="https://web.archive.org/web/20111002101214/http://msdn.microsoft.com/en-us/library/windows/desktop/cc144101(v=vs.85).aspx" rel="noopener nofollow ugc">Super User</a></em></p>