Archive: Get netstat -option information using NSIS


Get netstat -option information using NSIS
Hi all,

Is there a plugin/NSIS code/any other way that I can get the NSIS installer to get the information available using netstat -options (info on free and available ports).

Thanks.


nsExec


Hi Joel,

- Firstly I am unable to find nsExec plugin. I think it has been replaced by the execDos plugin.

- Also I am unable to figure out how to use the execDos plugin for my purpose. Basically I want NSIS to run my command prompt (situated in C:\Windows\system32\cmd.exe), execute the netstat -options in it and get the results into a text file in some folder on my comp.

Sorry for being so problamatic :P..m an amateur in the NSIS field still :)


nsExec normally should present in NSIS/plugins folder.
ExecDos

DetailPrint "Running netstat -a" 
ExecDos::exec "netstat -a" "" "$EXEDIR\netstat.txt"
Pop $0
MessageBox MB_OK "Exit code $0"
You should set correct path for output file and can skip MessageBox.

Hi Takhir,

Thank you very much for the reply..it works :)


can anyone please tel me the logic behind check for available (not used by any application) ports using ExecDos::exec "netstat -a" "" "$EXEDIR\netstat.txt"