Im trying to come up with a login script that will check to see if my users have some drives mapped and if not map them. I can find loads of titbits that shows how to check if one drive is mapped and if not then map it, but I cant find any that give an example of a loop where I can specify a string of drive letters and folders and have it check them all.
in this case I want to check if j:, x:, y: and z: are mapped and if not map them to folder1, 2, 3 and 4.

Can anyone give me some pointers please.