WSH(・∀・)スレッド! at TECH
[2ch|▼Menu]
292:デフォルトの名無しさん
05/08/22 13:25:15
>>291
こんな感じでしょうか。
この例ではHello, world!の後の改行までsに代入されてしまってますが。

----------
D:\>type hello.js
print("Hello, world!");

D:\>type hello2.js
var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Exec("d:\\hello.exe");
var s = oExec.StdOut.ReadAll();
WScript.StdOut.Write("[" + s + "]");

D:\>jsc /nologo hello.js

D:\>hello.exe
Hello, world!

D:\>cscript //nologo hello2.js
[Hello, world!
]

D:\>
----------


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

4306日前に更新/212 KB
担当:undef