Computing.Net > Forums > Disk Operating System > win2000 dos command output to variable

win2000 dos command output to variable

Reply to Message Icon

Original Message
Name: bjersa
Date: October 30, 2001 at 05:13:45 Pacific
Subject: win2000 dos command output to variable
Comment:

Hi
I want to get the IP-address of ping or nslookup into a variable.
I have done this:
ping -n 1 %CNAME% | find /i "reply"
but i cannot get it in to a variable, i only want the ip address not the reply thingy.
plz help


Report Offensive Message For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: win2000 dos command output to variable

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software