How Do I read arguments from the command line? Would this work the same in both windows and console mode?
It's amazing what you can find on this site when you search for it.
How to get command line arguments
http://www.ionicwind.com/forums/index.php/topic,2510.msg21416.html#msg21416
Larry