Need help modifying this VBS code
Posted on 2011-10-24
I am using the below code to check to see if a specific folder exists on a users share. I need to change it so that it first determines if the user is mapping to an "M" drive. If not it needs to see if they map to a "U" drive and if so, the folder should be created there. Some users will map to a M:\ for user files and some of our new users will map to a U:\ for user files- so I need this to work for both, if possible. Thanks!
Set fs = CreateObject("Scripting.FileSystemObject")
AppFolder = "M:\Apps"
If fs.FolderExists(AppFolder) = False then