Well, you could create your own class inherited from the Console class and
add a static field that would keep track of how many instances of your class
there are. You can then check this field in your code to only open a new
console session if there are no other sessions open. This is just a thought
and there might be another more efficient way to do it...anyone?!
Chris
--
Securing your systems is much like fighting off disease -- as long as you
maintain basic hygiene, you're likely to be okay, but you'll never be
invulnerable.
Steve Shah - Unix Systems Network Administrator
"Hardy Wang" <ha*******@newsgroups.nospam> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
How to allow only one instance of console application to run on one single
machine?
Thanks!
--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy