; Script made as uploader for Flagg 162 lab computers, Summer 1999 ; Eric Thern ; get the IMACH variable #getha \\images\images\PCRDist\getha\getha.db #echo Machine Type is %IMACH% ; Mount the drive (commented out, because I always mount the drive before running this script) ;+mount \\images\images i: ; This translates the .reg file into a .prg file. This is REALLY usefull!! +exec "I:\PCRDist\reg2prg.exe c:\windows\%IMACH%.reg" ;********************************************************************************** ;********************************************************************************** ;if IMACH is NOT equal to "Merritt" then run these dist blocks. ;this is for all the other types (LevittB4, LevittB5, and Flagg162 machines). #if %IMACH% != "Merritt" --------------[ upload block ]--------------------- ; uploads the image, ignores the temp directory, the master '.reg' (actually, .prg) file, the swap file ; and system.dat and user.dat. ; If you have the delete flag set, MAKE SURE the path is set right! > I:\PCRDist\images\%IMACH% c:\ : missing size time attrib delete > Win98 : ignore recurse < > Program Files > Win98 : ignore recurse < < > Windows > temp : ignore recurse < | win386.swp : ignore | system.da? : ignore recurse | user.da? : ignore | *.reg : ignore | *.ert : ignore < < --------------[ end of upload block ]----------------------- #endif ;********************************************************************************** ;********************************************************************************** ;if IMACH is equal to "Merritt" then run these dist blocks. #if %IMACH% = "Merritt" --------------[ upload block ]--------------------- ; we want to create prescan-index files for this image. (makes it go faster) AUTOCREATEPRESCAN=YES ; uploads the image, ignores the temp directory, the master '.reg' (actually, .prg) file, the swap file ; and system.dat and user.dat. ; If you have the delete flag set, MAKE SURE the path is set right! > I:\PCRDist\images\%IMACH% c:\ : missing size time attrib delete > Win98 : ignore recurse < > Program Files > Win98 : ignore recurse < < > Windows > temp : ignore recurse < | win386.swp : ignore | system.da? : ignore recurse | user.da? : ignore | *.reg : ignore | *.ert : ignore < < --------------[ end of upload block ]----------------------- #endif ; copies the master registry from the local machine, and puts it into the right place. ; (make sure you export the registry to 'c:\windows' in this example. + copy "c:\windows\%IMACH%.prg" "i:\PCRDist\regfiles\%IMACH%.prg" ; commented out unmount, because it gets annoying if you just end up having ; to re-mount it after an upload. ;+ unmount i: +msg "Upload Done."