The initial troubble I was having with the batch file is as follows. When the batch file was run the workstation returned the following error bla bla bla ...UNC paths are not supported Defaulting to thw current windows directory (MS Knowledge base article 156276). This occured when the batch file, login.bat was executed from the netlogin share. As far as the exe file just being a workaround, I was just trying to find something that worked.

I have tried the endif statement with no success, and if memory serves me correctly i have also tried the above script not mapping more than one share deep with no success as well.