外部プログラムを呼び出すには、InvokeExternalCommand コマンドを使用する必要があります。 以下のコード スニペットは、外部プログラムを呼び出す例を示しています。
// Define callback to be invoked upon completion of
// External Program.
function cb(status, props) {
if (status != "0") {
// Something failed, check status for specifics
}
};
// Credentials are passed via the properties argument.
var props = {
account: "fred",
password: "flintstone"
};
// Invoke the VPN External Program.
var status = plugin.InvokeExternalCommand("VPN", props, cb);
if (status == 1000) {
// Program started. cb will be called when program completes.
}
else {
// Failed to initiate command, check status for specifics.
}
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|