[Mono-list] Determining runtime environment

Gonzalo Paniagua Javier gonzalo@gnome-db.org
Sun, 31 Mar 2002 06:52:13 +0200


* [ Brad Wilson <dotnetguy@pobox.com>
* Sun, 31 Mar 2002 05:32:25 +0200 ]
> Has any thought been placed into how to determine what your runtime
> environment is? For example, I'm working on extending the NAnt file-list to
> be able to search for files on the PATH. Without knowing if I'm on Unix or
> Windows, though, I won't know how to properly split the PATH env var.

	I don't know how to guess the OS, but this will probably help
	you to split the PATH:

	http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOPathClassVolumeSeparatorCharTopic.asp

	Also, from the page above, you can get to DirectorySeparatorChar,
	PathSeparator...

	Cheers!