oh if the ip has quotes around it you can use the following, just replace the whole line in the previous script.

Code:
set -l %ip $noqt($remove($read(%filepath,w,LastMPServer=*),LastMPServer=))


http://scripting.pball.win
My personal site with some scripts I've released.