Saturday 17 May 2008   
Add Comment

Using CF8 and .NET to get OS Information

ColdFusion Tutorial #17

This Tutorial describes how to get the following Operating System Information from ColdFusion using .Net functions.

Hard Disk Information
IP and Computer Name
Mac Address
Computer Information

demo.cfm

This is fairly simple. Create a .NET object using createObject and then invoke the various methods and dump or output the results.

 
 


SystemInfo.cs

This is the .NET class providing the various methods. It really doesn't need any explanation. One thing to note if you wish to compile this as a DLL, you need to add the System.Management as a reference to the project.

 
 


Demo

See this code running!


Download

Download this code as a zip!


Comments

There are no comments!

Click button to add a comment


Author

Vishnu Prasad


Published

Wednesday 24 Oct 2007

Original

This tutorial has been modified and published with permission of the author. The original tutorial can be found here
http://wrvishnu.wordpress.com/2007/10/05/getting-systemos-information-in-coldfusion/ 

Tags

cfdump  cfobject  cfoutput  cfset