• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Reg: Get IP config values through javascript

Participant ,
Mar 12, 2013 Mar 12, 2013

Copy link to clipboard

Copied

Hi All,

please let me know, how to get the DNS Suffix name using javascript.

ip.JPG

--

Thanks

Bala

TOPICS
Scripting

Views

2.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 13, 2013 Mar 13, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 13, 2013 Mar 13, 2013

Copy link to clipboard

Copied

LATEST

Thanks, Hans.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines