If Not Exist("\\nvzramcw3vn101\6-MDG-G\Data\6 MDG Network Drives\Users\@userid")
; If the user does not have a mappable homedrive share, we need to create it
; Here the script logs the fact there is homeshare, then exits to the normal
; medical.bat continuation
CLS
$FH = FreeFileHandle()
; Some troubleshooting statements to follow ...
;?
;? "File Handle found: "+$FH
;?
;Sleep 3
;? "Just before open statement ..."
;?
;Sleep 3
If Open($FH,"\\fsnvzrmsanb\organization\meprs_cm\MEPRS_LOG.TXT",5) = 0
$x = WriteLine($FH,@DATE + " " +@TIME + " U: Drive Not Found for " + @USERID + " " + @CRLF + @CRLF)
Close($FH)
?
? "Exiting MEPRS Pop-Up Module ..."
?
Sleep 2
Quit
EndIf
?
?
Sleep 3
Else
; This determines whether they have the meprs folder under their homedrive share
; Getting here means the user has a mappable home share and it is permissioned right
If (Exist("\\nvzramcw3vn101\6-MDG-G\Data\6 MDG Network Drives\Users\@userid\meprs") = 0)
MD ("\\nvzramcw3vn101\6-MDG-G\Data\6 MDG Network Drives\Users\@userid\meprs")
EndIf
EndIf