Skip to content

Instantly share code, notes, and snippets.

@azu

azu/run_process.ng

Created Aug 16, 2010
Embed
What would you like to do?
プロセスの起動
if(!Process.find("opera.exe")){
var pro = '"C:\\Program Files\\Opera\\opera.exe"';
try{
Process.create(pro);// 起動
}catch(e){
println(e.toSource());
}
}
var p = Process.waitExtinct("opera.exe");
if(!p){
println("opera.exe is dead");
}else{
println("まだ生きてる")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.