dos help

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
hey all,

if i saved a txt file with a ip address in, say 127.0.0.1, and called it a.txt, could i use that data in a dos command??

i.e,

ping >a.txt would it do (ping 127.0.0.1)

if not, is there a way?

any ideas???
 
Last edited:
if anyone is interested i have found an answer to me question;

set /P MyIP=<a.txt
ping %MyIP%

only thing now is i can't get my batch file to write the %1 value into the a.txt file.

help??!!??
 
Back
Top Bottom