Nice one Bryce worked like a treat added this line:

code:

$nul = writeline(2,"$dhcpip \\$dhcpcname$cr") "."

Curiously though after I added this line above the do statement:

code:

writeline(2,"IP Address Computer name$cr")

when it wrote to the file it put a 0 after it e.g. test0.dat. Its no bother like, it just seems strange and it still works bloody lovely. Thanks again:

Ju