「含んでいるフォルダを開く」の版間の差分
改行の修正 |
SyntaxHighlightにcopyの追加 |
||
| (同じ利用者による、間の3版が非表示) | |||
| 1行目: | 1行目: | ||
== 概要 == | == 概要 == | ||
開いているドキュメントがあるフォルダをエクスプローラで表示します。 | |||
VisualStudio | VisualStudio の「含んでいるフォルダを開く」機能の模倣です。 | ||
== | == ソースコード == | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript" copy> | ||
#title = "含んでいるフォルダを開く" | #title = "含んでいるフォルダを開く" | ||
// ----------------------------------------------------------------------------- | // ----------------------------------------------------------------------------- | ||
// | // 開いているドキュメントのフォルダを開きます。 | ||
// | // | ||
// Copyright (c) ks. All Rights Reserved. | // Copyright (c) ks. All Rights Reserved. | ||
| 17行目: | 17行目: | ||
var doc = window.Editor.ActiveDocument; | var doc = window.Editor.ActiveDocument; | ||
if (doc.Path) { | if (doc.Path) { | ||
var shell = new ActiveXObject("WScript.Shell"); | |||
shell.Run("rundll32.exe url.dll FileProtocolHandler \"" + doc.Path + "\""); | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
スポンサーリンク