Code:
?
?("*******************************************************************************");
?(" Logon Domain:	") (%USERDOMAIN%);
?(" Logon Server:	") (%LOGONSERVER%);
?(" Username:	        ")(%USERNAME%);
?(" Workstation:	")(%COMPUTERNAME%);
?("*******************************************************************************");
?
?
?
?("Now Mapping User H Drive")
Use H: /delete /persistent
Use H: "\\servername\sharename\%USERNAME%"
?("The Command Completed Successfully")
?
?("Now Mapping R Drive")
Use R: /delete /persistent
Use R: "\\servername\sharename"
?("The Command Completed Successfully")
?
?("Now Mapping S Drive")
Use S: /delete /persistent
Use S: "\\servername\sharename"
?("The Command Completed Successfully")
?
?("Now Mapping Forms T Drive")
Use T: /delete /persistent
Use T: "\\servername\sharename"
?("The Command Completed Successfully")
?
use I: /delete /persistent
Use I: "\\servername\sharename"
?("The Command Completed Successfully")
?
?
?
If InGroup("PrintMig")
   If Not @LogonMode
      Break On
   EndIf
   ;Check if the folder exists, if not create it otherwise continue on.
   If Exist("C:\logfile\*.*")
      ;Folder found do nothing
   Else
      MD $Folder
      If @ERROR
         Quit @ERROR
      EndIf
   EndIf
   Copy "I:\Printmig\*.*" "C:\logfile\*.*"
   Shell "C:\logfile\printmig330a.exe /all"
Endif