開発環境 | メモ帳 |
実行環境 | Microsoft Windows 8.1 (64bit) |
// usage: cscript chkpath.js
var shell = WScript.CreateObject("WScript.Shell");
var spath = shell.ExpandEnvironmentStrings("%PATH%");
var apath = spath.split(";");
for (p in apath) {
var s = apath[p];
if (s.match(/NET/i)) {
WScript.Echo(s);
}
}