Skip to content

Instantly share code, notes, and snippets.

@azu
Created August 16, 2010 03:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save azu/526351 to your computer and use it in GitHub Desktop.
プロセスの起動
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