General discussion

Locked

Using windows Xp Ip Configuration tool

By cliveyow ·
After downloading the xp ip config tool, The instructions says to rename the text document wxp-ipconfig.text to wxp-ipconfig.hta and double click on it to install the tool,however it still remains a text document.What am I missing to install this tool.

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

good Q

by dawgit In reply to Using windows Xp Ip Confi ...

I was wondering about that too. I'd like to see more documentation on the program. I like to know what I'm getting into.

Collapse -

It's VB script; here's the listing

by deepsand In reply to good Q

[v]
<html>
<head>
<title>The Windows XP IP Configuration Tool </title>

<HTA:APPLICATION
ID = "XApp"
APPLICATIONNAME = "The Windows XP IP Configuration Tool"
BORDER = "thick"
CAPTION = "yes"
ICON = "wxpipc.ico"
SHOWINTASKBAR = "yes"
SINGLEINSTANCE = "yes"
SYSMENU = "yes"
WINDOWSTATE = "normal"
SCROLL = "no"
SCROLLFLAT = "yes"
VERSION = "1.0"
INNERBORDER = "no"
SELECTION = "no"
MAXIMIZEBUTTON = "yes"
MINIMIZEBUTTON = "yes"
NAVIGABLE = "yes"
CONTEXTMENU = "yes"
BORDERSTYLE = "normal">

<OBJECT ID="WindowsShell"
CLASSID="clsid:13709620-C279-11CE-A49E-444553540000">
</Object>

<SCRIPT LANGUAGE="VBScript">


Dim WshShell, FileSystem, CommandLine, ipcswitch, Param
Dim RelAdap, RenAdap, ShoAdap, SetAdap

Set WshShell = CreateObject("WScript.Shell")
Set FileSystem = CreateObject("Scripting.FileSystemObject")

Window.ResizeTo 600, 420
Window.MoveTo 5, 5

Sub ProcessOptions

Set MyForm = Document.dbx
Set RadioButtonDialog = MyForm.Elements("ipcswitch")

For Each RadioButton In RadioButtonDialog
If RadioButton.Checked = True Then
ipcswitch = RadioButton.Value
Exit For
End If
Next


Select Case ipcswitch
Case "/release " Param = MyForm.RelAdap.Value
Case "/renew " Param = MyForm.RenAdap.Value
Case "/showclassid " Param = MyForm.ShoAdap.Value
Case "/setclassid " Param = MyForm.SetAdap.Value
End Select


Call RunCommand

End Sub 'ProcessOptions

Sub RunCommand

CommandLine = "IPConfig " & ipcswitch & Param

Prompter = "This is the IPConfig command that you just configured:" & vbCrlf & vbCrlf &_
"Do you want to execute it?" & vbCrlf & vbCrlf &_
CommandLine

ExecuteIt = MsgBox(Prompter, 1, "The Windows XP IP Configuration Tool")

If ExecuteIt = 1 Then
WshShell.Run "Cmd.exe /t:9F /k " & CommandLine, 1, True
End If

End Sub 'RunCommand

Sub DisplayHelp

HelpCommand = "ipconfig /?"
WshShell.Run "Cmd.exe /t:9F /k " & HelpCommand, 1, True

End Sub 'DisplayHelp

Sub CloseDown

Window.Close
Wscript.Quit

End Sub 'CloseDown

</Script>
</head>

<body bgcolor="#E0E2EB">

<form name="dbx">

<div align="left">

<table border="0" cellspacing="1" width="600">


<tr>
<td valign="top">
<fieldset><legend>IPConfig Switches</legend>
<div align="left">
<table border="0" cellspacing="1" width="675">
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="">Display basic TCP/IP configuration</p>
</td>
<td width="50%">

</td>
</tr>
<tr>
<td width="60%">
<p><input type="radio" name="ipcswitch" value="/all">Display full TCP/IP configuration (/all)</p>
</td>
<td width="40%">

</td>
</tr>
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="/release ">Release current DHCP configuration (/release)</p>
</td>
<td width="50%">
<p><input type="text" size="16" name="RelAdap"></p>
</td>
</tr>
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="/renew ">Renew DHCP configuration (/renew)</p>
</td>
<td width="50%">
<p><input type="text" size="16" name="RenAdap"></p>
</td>
</tr>
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="/displaydns">Display the DNS client resolver cache (/displaydns)</p>
</td>
<td width="50%">

</td>
</tr>
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="/flushdns">Flush and reset the DNS client resolver cache (/flushdns)</p>
</td>
<td width="50%">

</td>
</tr>
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="/registerdns">Refresh DHCP lease and re-register DNS names (/registerdns)</p>
</td>
<td width="50%">

</td>
</tr>
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="/showclassid ">Display the DHCP class ID (/showclassid)</p>
</td>
<td width="50%">
<p><input type="text" size="16" name="ShoAdap"></p>
</td>
</tr>
<tr>
<td width="50%">
<p><input type="radio" name="ipcswitch" value="/setclassid ">Configure the DHCP class ID (/setclassid)</p>
</td>
<td width="50%">
<p><input type="text" size="16" name="SetAdap"></p>
</td>
</tr>
<tr>
<td> </td>
</tr>

</table>
</div>
</fieldset>
</td>
</tr>
<tr>
<td> </td>
</tr>


</table>
</div>
</form>

<table border="0" cellspacing="1" width="100%">
<tr>
<td valign="top"><font color="#0000FF" size="1">
Created For TechRepublic <br>
by Greg Shultz<br>
<a href="http://www.TheWinWiz.com" target="_blank">www.TheWinWiz.com</a>
</td>
<td align="right" valign="top">
<input type="button" value=" Help " onclick="DisplayHelp">
<input type="button" value=" OK " onclick="ProcessOptions">
<input type="button" value="Close" onclick="CloseDown">
</td>
</tr>
</table>


</body>
</html>
[/v]

Collapse -

Sorry, but the damned "verbatim" switch still does'nt work.

by deepsand In reply to It's VB script; here's th ...

It's supposed to preserve the formatting in discussions, so that listings such as this remain readable.

I suggest that you download the file, and open it in Notepad.

Collapse -

NotePad ++

by dawgit In reply to Sorry, but the damned "ve ...

That's what I usally use. I find it much 'fuller' in features. - but thanks -d

Collapse -

Query re. "Verbatim" switch

by deepsand In reply to NotePad ++

When TR gave us the switches for bold, italicized, and emoticons, they also announced a Verbatim switch, delimited by [v] & [/v], for the purpose of having character strings within posts being handled with no translation, so as to preserve, for example, formatting with tabs for readability.

It failed to work when first announced, and has obviously not been implemented using said delimiters.

Do you know of a way to effect such? The VBScript that I posted is much more readable & understandable in the format that I loaded it than it is as it now appears.

Collapse -

That explains it, Thanks...

by dawgit In reply to It's VB script; here's th ...

The VB script, that explains it all now (and probably why I probably won't use it) I wish that that had been explained better in the first place (Tech-Rep, any one listening?) it could have been stated as such... a VB script to modify (XXXX) or the like. Thanks for that. I don't know that I would have taken the time to do that, as I had other things going. Here's a Question for someone, will this then, correct the change brought about in IP config by SP2? Prior to SP2 we had a lot more flexability in setting the config for IP (as well as the firewall settings for indivual LAN connections). I still don't see multiple IP issues addressed by MicroSoft. (just a sales pitch for their server software) Any way, thanks. (as for the script appearance in your post,... I figured that out, but thanks for pointing it out) -d

Collapse -

It works fine...

by osumiller In reply to Using windows Xp Ip Confi ...

make sure that you are really changing the file from txt to hta. It works fine on my system. No installation required.

Collapse -

There is no "installation" per se.

by deepsand In reply to Using windows Xp Ip Confi ...

An .hta file is a script file, specically, an HTML application; by changing its extension from .txt to .hta it becomes executable, no matter what icon is displayed.

If it does not execute either you've missed named the file, or the download is corrupt, or your OS blocking it.

Right click on the file, and select "Open With"; you should see a choice for "MS HTML Application Host." Try that and see what happens.

What OS are you runnung?

Collapse -

Me? I use ...

by dawgit In reply to There is no "installation ...

For this I have XP-Pro (X2) in the network-d

Collapse -

The question re. which OS was for cliveyow.

by deepsand In reply to Me? I use ...
Back to Windows Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Forums