> Eric said that too so working on it now, I got my freadln() working > right, it was only retrieving one character from file and not the whole > string, cause it to return false every time. It going to exit with users > record number as errorlevel if successful login.
I would not like to have to write lot of "if errorlevel" for multiple users. It would be better for login program to set environment variable with username and maybe also home directory (if login file has information about user's home directory, if not, I could set it from autoexec.bat with "set HOME=C:\PROFILES\%USER%" or similar command). Kristaps Kaupe, http://kristaps.netparks.lv ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user