- Timestamp:
- 2010-08-05T09:52:01+12:00 (14 years ago)
- Location:
- main/trunk/gli
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/gli.bat
r22530 r22574 45 45 46 46 :checkUserPermissions 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" 2>nul 49 if exist "%GSDLHOME%\collect\testing.tmp" goto deleteTempFile 50 if "%1" == "Elevated" goto shiftElevated 47 echo Checking if the Greenstone collection directory is writable ... 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 printWarning 51 echo ... FAILED 52 echo The %PROGNAME% cannot write to the collection directory (%GSDLHOME%\collect) 53 echo Requesting elevated status to become admin user to continue. 51 54 "%GSDLHOME%\bin\windows\gstart.exe" %0 Elevated %1 %2 %3 %4 %5 %6 %7 %8 %9 52 55 goto done 56 57 :printWarning 58 echo ... FAILED 59 echo The %PROGNAME% cannot write to the log directory (%GSDLHOME%\collect). 60 echo Attempting to continue without permissions. 61 goto shiftElevated 53 62 54 63 :deleteTempFile 55 del "%GSDLHOME%\collect\testing.tmp" 64 echo ... OK 65 del "%GSDLHOME%\collect\testing.tmp" 56 66 57 67 :shiftElevated 58 68 :: Shift "Elevated" (one of our own internal command words) out of the way if present 59 69 :: so the command-line is as it was when the user initiated the command 60 if "%1" == "Elevated" shift70 if "%1" == "Elevated" shift 61 71 62 72 :findPerl
Note:
See TracChangeset
for help on using the changeset viewer.