「Windowsでエクスプローラーからフォルダを各種ターミナルで開く」の版間の差分

Notion-MW
Notion-MW
489行目: 489行目:
<li><p>vbsの例</p>
<li><p>vbsの例</p>
<p>次の節で解説する「(自分が起動された)カレントディレクトリでの起動」にも対応している(引数がない場合)。</p>
<p>次の節で解説する「(自分が起動された)カレントディレクトリでの起動」にも対応している(引数がない場合)。</p>
<syntaxhighlight lang="python">
<syntaxhighlight lang="vb.net">Dim objShell
 
vb.net
Dim objShell
Dim curDir
Dim curDir


515行目: 512行目:
<p><code>&quot;C&#58;\Program Files\Git\usr\bin\sh.exe&quot; &quot;C&#58;\path\to\gb&#45;wt&#45;admin.sh&quot; &quot;%V&quot;</code></p>
<p><code>&quot;C&#58;\Program Files\Git\usr\bin\sh.exe&quot; &quot;C&#58;\path\to\gb&#45;wt&#45;admin.sh&quot; &quot;%V&quot;</code></p>
<p>で、<code>gb&#45;wt&#45;admin.sh</code>の中身は以下。</p>
<p>で、<code>gb&#45;wt&#45;admin.sh</code>の中身は以下。</p>
<syntaxhighlight lang="python">
<syntaxhighlight lang="c#">#!/bin/sh
 
c#
#!/bin/sh
IFS=
IFS=
LANG=en_US.UTF-8
LANG=en_US.UTF-8