
Originally Posted by
heart reaper
But tell me, why would you need an application for cmd? when your can use it in GUI?
I want to log my external IP to a file after running a series of commands in batch script. I wouldn't mind using a GUI app but I need it to support commandline bcoz I should use it in middle of batch script and append the ouput to a file.
Let me be more clear, for example a very simple command like
ipconfig /all >>output.txt
will append the output of the command to external file "output.txt" like this
Code:
Windows IP Configuration
Host Name . . . . . . . . . . . . : pc
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Ethernet NIC
Physical Address. . . . . . . . . : 00-00-00-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 218.248.240.33
218.240.240.135
PPP adapter DataOne:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 59.92.000.61
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 59.92.000.61
DNS Servers . . . . . . . . . . . : 218.248.240.181
218.248.240.179
NetBIOS over Tcpip. . . . . . . . : Disabled But ipconfig /all has lots of extra info. I want to append only the external IP to the file.