function PCName() { var oWshShell = new ActiveXObject("WScript.Shell"); var txtbox = document.getElementById("<%=txtPCName.ClientID%>"); txtbox.value=oWshShell.ExpandEnvironmentStrings("%ComputerName%"); var tbox = document.getElementById("<%=txtPCName.ClientID%>"); tbox.value=txtbox.value; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)