"hb21l5" <hb21l5@xxxxxx> wrote in message
>I have this script which works fine,
> only problem is, it maps the drive whether they have permission or not.
> so creating lots of mapped drives (accessable / unaccessable) on their
> Is there a way to check access before mapping the drive?
> if permission granted, then
> map drive
> end if
Use the 'FolderExists' method of 'Scripting.FileSystemObject'. If the
user has permissions to the share, it will return 'True'. Otherwise, it will
If oFSO.FolderExists("\\server\share") then
'Map Drive code