Archive: Discovering the Operational System


Discovering the Operational System
I'm asking for some help...

I need to discover what operation system my user is using.

I'm installing the Apache WebServer + MySQL + PHP.

I made all the configuracion and scripts to install, but when the OS is WIN98 or before I can't install Apache and MySQL as a service, so I'm putting icons on the user desktop, but when the OS is NT, 2000 Server or XP, I have to install Apache and MySQL as a service.

So, I have to find out which OS my user is running. Does someone have a script that do this???

Thank you for the help.

ps: sorry about the english, I'm from Brazil.


Just search the forum and you will find all you need.

http://forums.winamp.com/search.php?...by=&sortorder=

functions.htm contains a function that does this as well...