Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Extract IP address from txt file
Name: jonez34 Date: January 30, 2006 at 09:18:50 Pacific OS: windows 2000 CPU/Ram: 2.5 GHZ
Comment:
I am trying to construct a batch file that lets someone remotley execute either a command prompt or task manager. I have that part done but what I want to do is to be able to ask the person running the script if they need to resolve a hostname to ip if they do then they enter the computer hostname. From here I would like to have something like a "ping <hostname> >ping.txt" and then have the batch file parse the file looking for either the word Reply (as in Reply from x.x.x.x) or Request (as in Request timed out) and based on that it stores the IP address (if valid) into a variable that I can call at a later time. I know that I am going to have to use the FIND command but I have no idea how to use it correctly.
Summary: Hi , i am having this problem of extracting data out from txt file being seperated by ¨;¨. Example: How is your day?;Fine Where are you now?;At your house My code is as follow: char *ques[20]; char...
Summary: i have a text document that I need to pull just the IP addresses from. I need to know what king of script or command i should use to do this. ...
Summary: I have a txt file containing one line of text which looks something like this : " JDOE <03> UNIQUE 10.123.10.247 362" - only without then inverted commas. The various pie...