Here is a bit of code that I robbed from my 2433A Course and converted over that should cover this:Code:

CLS BREAK ON $oFSO=CreateObject('Scripting.FileSystemObject') ; Loop through all used drives ;For each $oDrive in $Onetwork.EnumNetworkDrives For each $drive in $oFSO.Drives $sFinalDrive=Left($drive,1) Next ; Convert final used Drive to ASC and add 1 and return to character $sNextDrive=CHR(ASC($sFinalDrive)+1)+':' ;Map New Drive USE $sNextDrive '\\<SOMESERVER>\APPS' IF @ERROR<>0 ?'COULD NOT MAP DRIVE DUE TO '+@SERROR ENDIF

I abstract the true path by consolidating my shares using DFS. I use just three drive letters that are the same for everybody except of course their home drive which is the same letter but different path but still hosted through the DFS.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.