[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-unattended/var/se3/unattended/install/bin/ -> mapznrun.bat (source)

   1  @echo off
   2  if exist %SystemDrive%\netinst\permcred.bat call %SystemDrive%\netinst\permcred.bat
   3  if exist %SystemDrive%\netinst\tempcred.bat call %SystemDrive%\netinst\tempcred.bat
   4  
   5  if not %Z%. == . goto got_drive
   6  set Z=Z:
   7  :got_drive
   8  
   9  :: If drive is already mapped, do nothing
  10  if exist %Z%\ goto mapped
  11  
  12  if not %Z_PATH%. == . goto got_path
  13  
  14  if exist %SystemDrive%\netinst\IPSE3.bat call %SystemDrive%\netinst\IPSE3.bat
  15  if "%IPSE3%"=="" set IPSE3=SE3
  16  
  17  set Z_PATH=\\%IPSE3%\install
  18  :got_path
  19  
  20  if %Z_USER%. == . goto no_user
  21  if %Z_USER%. == "". goto no_user
  22  set USER_ARG=/user:%Z_USER%
  23  :no_user
  24  
  25  :try_again
  26  set COUNT=x%COUNT%
  27  if not %COUNT% == xxxxxxxxxxxxxxxxxxxx goto mapit
  28  echo Too many retries; giving up
  29  goto hang
  30  
  31  :mapit
  32  echo Mapping %Z_PATH% on %Z%...
  33  
  34  if not %Z_PATH%. == dvd. goto not_dvd
  35  %SystemDrive%\netinst\mapcd.js \bin\todo.pl %Z%
  36  if exist %SystemDrive%\netinst\setzpath.bat call %SystemDrive%\netinst\setzpath.bat
  37  if exist %Z%\ goto mapped
  38  echo Failed; retrying.
  39  :: Sleep for 10 seconds
  40  ping -n 10 localhost > nul
  41  goto try_again
  42  
  43  :not_dvd
  44  
  45  net use %Z% %Z_PATH% %Z_PASS% %USER_ARG% /persistent:no
  46  if exist %Z%\ goto mapped
  47  net use %Z% /delete
  48  echo Failed; retrying.
  49  :: Sleep for 10 seconds
  50  ping -n 10 localhost > nul
  51  goto try_again
  52  
  53  :mapped
  54  
  55  echo ...done.
  56  :: Clean up environment, except for %Z% and %Z_PATH%
  57  set Z_USER=
  58  set Z_PASS=
  59  set USER_ARG=
  60  set COUNT=
  61  
  62  :: Invoke command passed as argument
  63  %1 %2 %3 %4 %5 %6 %7 %8 %9
  64  if not errorlevel 1 goto end
  65  echo FAILURE in mapznrun.bat
  66  
  67  :hang
  68  goto hang
  69  
  70  :end


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1