|
Hi Guys 'n' Gals, I have created my user and have decided when they login in I will create their home directory. I have managed to do that, but I don't know how to use the @ERROR command. below is an example of what I'm trying to do. ;map home directory as first drive to the "Z" Drive if Exist ("\\server\users$\@userid") ; ?"User path found" USE Z: /DEL USE Z: "\\server\users$\@userid" /PERSIST:NO ?UCASE("Home directory successfully mapped") else ;Create the user's home directory if it does not exist BEEP ?"Your home folder does not exist. " ??UCase("Please Wait ...") ??"The System is attempting to create your home folder"? IF Exist ("\\server\USERS$\") "Path to create home folder found" ;Ready to create Home Folder MD "\\server\USERS$\@USERID" ;Here is where I'm trying to find out if an error occurred during creation. else "Path to create user's home folder not found" ;Time to Report Error ENDIF ENDIF
Is that OK or should I be using the @error macro. All suggestions welcome.
|