; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.3.0.0 ; Authors: ; Rick Davis (Rick@rick-davis.com) - map and label a drive ; Joshua Morris - used mapped drive to run application with commandline ; ; Script Function: Map a network share to Drive X, call Application Installer to update Graduate Office software ; ---------------------------------------------------------------------------- AutoItSetOption("TrayIconHide", 1) ;0=show, 1=hide tray icon ; ---------------------------------------------------------------------------- ; delete X if it exists DriveMapDel("X:") ; add new drive X as share using the credentials DriveMapAdd("X:", "\\server\share",0,"domain\user","password") ;label the drive DriveSetLabel("X:\","software") ;call the application installer with the commandline option Run("""\\server\share\application installer.exe"" grad")