Even this is working but I do think this is not a very good ideal and working for me,since my program will initiliaze the computer name before connect to network. So I hope it would be better to use mac address as computer in dos since mac address for each network card is very unique.So does any one know well in batch script for "FOR" command for windows 98/MSDOS 6.22.