I'm developing a web app and, for the user's convenience, I'd like to
display their local computer name (i.e. the name of the computer the browser
is running on).
I've looked very hard to find a script that will deliver this and I've also
tried some VBScript (which I know nothing about).
I found a script that did this:
var oShell = new ActiveXObject(" Shell.Applicati on");
then I thought to run
oShell.ShellExe cute to echo %COMPUTERNAME%
But, I get a Permission Denied error.
How do I get the computer name? It's OK if the user has to grant permission
(I haven't found out how to get the Permission Denied to go away).
Thanks,
RR
display their local computer name (i.e. the name of the computer the browser
is running on).
I've looked very hard to find a script that will deliver this and I've also
tried some VBScript (which I know nothing about).
I found a script that did this:
var oShell = new ActiveXObject(" Shell.Applicati on");
then I thought to run
oShell.ShellExe cute to echo %COMPUTERNAME%
But, I get a Permission Denied error.
How do I get the computer name? It's OK if the user has to grant permission
(I haven't found out how to get the Permission Denied to go away).
Thanks,
RR
Comment