The example scripts shown for the Scripting API for WMI are written in VBScript. If you use these examples as models for scripts written in Microsoft JScript, you must take into account several differences between these languages. The following example scripts show the VBScript for the Scripting API for WMI and how to write comparable scripts using JScript: New object creation in JScript is done u
regコマンド+query操作の方が手っ取り早くはある。。。 ↓のページに書かれているように、VBScriptだとStdRegProvオブジェクトにEnumKey/EnumValuesなどのメソッドが生えているが、jscriptからだとこれらがない。 Writing WMI Scripts in JScript (Windows) StdRegProvをGetして、 var locator = new ActiveXObject("WbemScripting.SWbemLocator"); var server = locator.ConnectServer(computer, "root\\default"); this.stdregprov = server.Get("StdRegProv"); 呼び出したいメソッド用の入力パラメータを入れる箱のインスタンスを取得して、呼び出したいメソ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く