Thanks Shawn, however i get this error message.

Script error : Unknown command !
For Each $Host In Split(ReadProfileString($HOSTS,"todo",""),CHR(10))

I am using version 3.55. if that is the issue where can i find the newest version?

thanks again.