Skip to main content
June 13, 2008
Answered

Check Windows or Linux?

  • June 13, 2008
  • 1 reply
  • 645 views
Hi everybody,

Is there a way to check which OS is running on the CF Server using CFML?

If yes, pls avise.

Thanks and regards,
Yogesh Mahadnac
This topic has been closed for replies.
Correct answer Newsgroup_User
<cfdump var="#server#">
or, specifically, #server.os.name#

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

1 reply

Newsgroup_UserCorrect answer
Inspiring
June 13, 2008
<cfdump var="#server#">
or, specifically, #server.os.name#

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Participating Frequently
June 13, 2008
even easier....

if you have a file on your server call foo.cfm - try accessing it using a different case, eg FOO.cfm - if it loads you're on windows, if it doesn't you're on a nix platform.