Copy link to clipboard
Copied
Hi All,
please let me know, how to get the DNS Suffix name using javascript.
--
Thanks
Bala
Copy link to clipboard
Copied
Hi,
I don't know, but running a *.bat via ES and piping the res of the *.bat to txt-file would give you the ability to get the requested.
Anything like this:
alert(ipConfig())
function ipConfig(){
var batString = 'cd c:\\ \n ipconfig ' + ' >' +'curripconfig.txt'
var _file = new File('~/tmp.bat');
_file.open( 'w' );
_file.encoding = 'UTF-8';
_file.writeln ( batString );
_file.close();
_file.execute();
var resFile = File('c:\\curripconfig.txt' )
while(!resFile.exists){
$.sleep(500);
}
resFile.open( 'r' );
var toRead = resFile.read();
resFile.close();
resFile.remove();
_file.remove();
return toRead;
}
Hope it'll be of some help 😉
Hans-Gerd Claßen
Copy link to clipboard
Copied
Thanks, Hans.