Created
August 16, 2010 03:36
-
-
Save azu/526351 to your computer and use it in GitHub Desktop.
プロセスの起動
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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