MSDN on Environment.CommandLine states: This property provides access to the program name and any arguments specified on the command line when the current process was started. Unfortunately it also says: The program name can include path information, but is not required to do so. You may be better of using the Assembly class, maybe it is: Assembly.GetExecutingAssembly().Location :)
Luc Pattyn [My Articles] [Forum Guidelines]