Thank you Richard.

This is the actual home path showing in ad account page

\\lrs.nameedu.local\DFS\Home Folders\Students\2003\%username%

The problem as I see it is that I have 5 paths a dont know how to tell kix to check all paths
\Students\2001\
\Students\2002\
\Students\2003\
\Students\2004\
\Students\2005\

USE H: /delete /persistent (This deletes the mapping I understand that bit)
USE H: "\\LRSFPS01\"+%USERNAME% (This maps h: to the username)
If @ERROR $=LogOff(1) EndIf
(It's this bit I dont understand if there's an error logoff (1) . How does this code check to see if the h: is already mapped and how do I integrate this to check all paths

Sorry for being so dumb I'm not very good at scripting just basic batch files hopefully I will pick this stuff up eventually.

admad1


Edited by admad1 (2006-07-04 09:06 AM)