How to run ipconfig in W2k?

T

Todd Gardner

Hello Everyone,

Or for that matter, how can I run a given command as if I entered it
into the DOS window?

Example:
C:\Documents and Settings\tnt>ipconfig

Windows 2000 IP Configuration

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.115
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Thank you,

Todd
 
G

gabriele renzi

il 28 Jun 2004 03:25:56 -0700, (e-mail address removed) (Todd Gardner) ha
scritto::
Hello Everyone,

Or for that matter, how can I run a given command as if I entered it
into the DOS window?

C:\Documents and Settings\gabriele>irb
irb(main):001:0> str= `ipconfig`
=> "\r\nConfigurazione IP di Windows\r\n\r\n\r\nScheda Ethernet
Connessione alla
rete locale (LAN) 3:\r\n\r\n Suffisso DNS specifico per
connessione: \r\
n Indirizzo IP. . . . . . . . . . . . . : 10.0.0.1\r\n
Subnet mask
. . . . . . . . . . . . . : 255.255.255.0\r\n Gateway
predefinito . . .
.. . . . . . : 10.0.0.2\r\n"

Or IO.popen. Or system()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top