WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Networks - Servers
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Test Network Drive Mappings

Keywords:    drive mappings

This handy utility to check that a network user's drive mappings are all there before running any other code.

To Download a zip file with all of E.R.'s examples


;MAPTEST.WBT

maplist="FUWXYZ"
mapno=strlen(maplist)
mapped=""
maperror=""
for map = 1 to mapno
        drive=strsub(maplist,map,1);get drive letter
        drive=strcat(drive,":\")
        if direxist(drive)
                mapped=strcat(mapped,drive,"  ")
        else
                maperror=strcat(maperror,drive,"  ")
        endif  
next map
text=("Your login to your Netware server has failed to connect%@crlf%")
text=strcat(text,"the following drive letter(s):  ",maperror,@crlf,@crlf)
text=strcat(text,"Your Desktop login cannot be completed reliably.",@crlf,@crlf)
text=strcat(text,"Press OK or Enter to reboot your PC and try again.",@crlf,@crlf)
text=strcat(text,"If the fault persists, please contact the Helpdesk.",@crlf)
Message("Error in mapping drives to fileserver",text)

return


Article ID:   W13499
Filename:   Test Network Drive Mappings.txt
File Created: 2017:08:29:11:51:02
Last Updated: 2017:08:29:11:51:02