Changeset 22530 for main/trunk/gli
- Timestamp:
- 2010-07-30T16:15:57+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/gli.bat
r22526 r22530 22 22 :: Invoke a new command processor to ensure there's enough environment space 23 23 if "%1" == "Second" goto progName 24 25 goto done 26 24 command /E:2048 /C %0 Second %1 %2 %3 %4 %5 %6 %7 %8 %9 25 shift 26 goto done 27 27 28 28 :progName … … 46 46 :checkUserPermissions 47 47 echo Checking if the collection directory is writable... 48 echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\collect\testing.tmp" 49 if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile 50 if "%1" == "Elevated" goto findPerl 51 if "%2" == "Elevated" goto findPerl 52 "%GSDLHOME%\bin\windows\gstart.exe" %0 %1 Elevated %2 %3 %4 %5 %6 %7 %8 %9 48 echo This is a temporary file. It is safe to delete it. > "%GSDLHOME%\collect\testing.tmp" 2>nul 49 if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile 50 if "%1" == "Elevated" goto shiftElevated 51 "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9 53 52 goto done 54 53 55 54 :deleteTempFile 56 55 del "%GSDLHOME%\collect\testing.tmp" 57 56 57 :shiftElevated 58 :: Shift "Elevated" (one of our own internal command words) out of the way if present 59 :: so the command-line is as it was when the user initiated the command 60 if "%1" == "Elevated" shift 61 58 62 :findPerl 59 :: Now need to find Perl. If found, PERLPATH will be set 63 :: Now need to find Perl. If found, PERLPATH will be set 60 64 call findperl.bat 61 65 if "%PERLPATH%" == "" goto exit
Note:
See TracChangeset
for help on using the changeset viewer.