computer-name

javascript is not giving the computer name

守給你的承諾、 提交于 2019-12-02 02:29:28
I am Trying to Get the Client Computer name using javascript like this <script language="javascript" type="text/javascript"> function GetComputerName() { try { var network = new ActiveXObject('WScript.Network'); alert(network.computerName); } catch (e) { alert('a'); } } </script> But this is not returning any thing else exception.Plz Help me to find out the client computer name in Javascript. 来源: https://stackoverflow.com/questions/14579752/javascript-is-not-giving-the-computer-name

Get LAN client machine name in servlet based web application

こ雲淡風輕ζ 提交于 2019-11-29 12:50:54
I have spring MVC application, that runs in LAN. In there client machines IP addresses are changing time to time. Therefore I want to get client machines names(Their machine name is fixed ),because I want to get client machine's details without creating log in. Is that possible to get client machine's name?? if it's possible how?? Or is there any other way to get that user details Edit: codes I have tried so far In HttpServlet public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String hostname = request.getRemoteUser(); //this gives null String

Getting computer name using VBA

与世无争的帅哥 提交于 2019-11-28 17:48:50
Is there a way to get the name of the computer in VBA? Dim sHostName As String ' Get Host Name / Get Computer Name sHostName = Environ$("computername") You can do like this: Sub Get_Environmental_Variable() Dim sHostName As String Dim sUserName As String ' Get Host Name / Get Computer Name sHostName = Environ$("computername") ' Get Current User Name sUserName = Environ$("username") End Sub Looks like I'm late to the game, but this is a common question... This is probably the code you want. Please note that this code is in the public domain, from Usenet, MSDN, and the Excellerando blog . Public

Get LAN client machine name in servlet based web application

≡放荡痞女 提交于 2019-11-28 06:07:38
问题 I have spring MVC application, that runs in LAN. In there client machines IP addresses are changing time to time. Therefore I want to get client machines names(Their machine name is fixed ),because I want to get client machine's details without creating log in. Is that possible to get client machine's name?? if it's possible how?? Or is there any other way to get that user details Edit: codes I have tried so far In HttpServlet public void doGet(HttpServletRequest request, HttpServletResponse

Getting computer name using VBA

帅比萌擦擦* 提交于 2019-11-27 20:11:02
问题 Is there a way to get the name of the computer in VBA? 回答1: Dim sHostName As String ' Get Host Name / Get Computer Name sHostName = Environ$("computername") 回答2: You can do like this: Sub Get_Environmental_Variable() Dim sHostName As String Dim sUserName As String ' Get Host Name / Get Computer Name sHostName = Environ$("computername") ' Get Current User Name sUserName = Environ$("username") End Sub 回答3: Looks like I'm late to the game, but this is a common question... This is probably the

How can I read the client&#39;s machine/computer name from the browser?

家住魔仙堡 提交于 2019-11-25 23:31:40
问题 How can I read the client\'s machine/computer name from the browser? Is it possible using JavaScript and/or ASP.NET? 回答1: You can do it with IE 'sometimes' as I have done this for an internal application on an intranet which is IE only. Try the following: function GetComputerName() { try { var network = new ActiveXObject('WScript.Network'); // Show a pop up if it works alert(network.computerName); } catch (e) { } } It may or may not require some specific security setting setup in IE as well