VBScript – display ipconfig properties

Version: 46.2
Revision: 70 Build 34

VBScript – display ipconfig properties

Introduction: If you are in for a rush and you want to look at “ipconfig /all” or “ipconfig /displaydns,” you can follow this guides and use it without typing in the actual commands.

1.] Download one of these notepad applications. But, if you haven’t downloaded them, please use one of the links that is provided.

2.] Copy and paste one of these codes into notepad.

************************************
DisplayDNS.
************************************

'============================
'Author: Lair360.
'Version: 16 Build 67.
'============================
On Error Resume Next 'This line will concel the error and direct to the info.
Dim objShell 'This will maintain memory usage when "WS.script.Shell" is activated.
Set objShell = CreateObject("WScript.Shell")
objShell.Run ("%comspec% /k c: & ipconfig /displaydns")
'Results are given and the cmd command-line has exit.
WScript.Quit
' End of VBScript command

************************************
Display IP configurations.
************************************

'============================
'Author: Lair360.
'Version: 16 Build 67.
'============================
On Error Resume Next 'This line will concel the error and direct to the info.
Dim objShell 'This will maintain memory usage when "WS.script.Shell" is activated.
set objshell = createobject("wscript.shell")
objshell.run("%comspec% /k c: & ipconfig /all")
'Results are given and the cmd command-line has exit.
WScript.Quit
'End of VBScript command

************************************

3.] Go to: File >> Save As.

4.] Put a specific name for the codes and input the extension at the end.
The script extension is: .vbs

Example: displayDNS.vbs

5.] Hit the save button and execute the script.

Comments are closed.