source: other-projects/trunk/realistic-books/bin/script/checkwritability.bat@ 19631

Last change on this file since 19631 was 19631, checked in by davidb, 15 years ago

addition of bin directory

  • Property svn:executable set to *
File size: 3.7 KB
Line 
1@echo off
2
3if "%REALISTIC_BOOKS_HOME%" == "" goto EnvNotSet
4
5REM test if we have write permission on the greenstone install directory
6echo.
7echo Checking if REALISTIC_BOOKS_HOME is writable...
8echo This is a temporary file. It is safe to delete it. > "%REALISTIC_BOOKS_HOME%\books\testing.tmp"
9if not exist "%REALISTIC_BOOKS_HOME%\books\testing.tmp" goto CantWrite
10del "%REALISTIC_BOOKS_HOME%\books\testing.tmp"
11echo REALISTIC_BOOKS_HOME has write permission for the current user.
12echo.
13goto TheEnd
14
15:CantWrite
16echo.
17echo.
18echo.
19echo -----------------------------------
20
21if "%RBLANG%" == "en" echo WARNING: CANNOT WRITE TO REALISTIC_BOOKS_HOME
22if "%RBLANG%" == "es" echo ATENCIÓN: NO PUEDE ESCRIBIR EN EL DIRECTORIO RAÍZ DE GREENSTONE.
23if "%RBLANG%" == "fr" echo AVERTISSEMENT: ECRIRE IMPOSSIBLE DANS LE DOSSIER D'ACCUEIL DE GREENSTONE
24if "%RBLANG%" == "ru" echo ВНИМАНИЕ: НЕВОЗМОЖНО ОСУЩЕСТВИТЬ ЗАПИСЬ В ДОМАКНЮЮ ПАПКУ GREENSTONE
25
26echo -----------------------------------
27If "%RBLANG%" == "en" echo Greenstone needs write permission for the Greenstone home folder,
28if "%RBLANG%" == "en" echo which is %REALISTIC_BOOKS_HOME%,
29if "%RBLANG%" == "en" echo but right now it does not.
30if "%RBLANG%" == "en" echo Please grant "Full Control" for this folder (and all subfolders)
31if "%RBLANG%" == "en" echo to the current user (%username%) and try again.
32
33if "%RBLANG%" == "es" echo Greenstone necesita permiso de escritura en el directorio:
34if "%RBLANG%" == "es" echo %REALISTIC_BOOKS_HOME%,
35if "%RBLANG%" == "es" echo pero no lo tiene.
36if "%RBLANG%" == "es" echo Por favor, concédale “Control completo” al usuario actual (%username%),
37if "%RBLANG%" == "es" echo y vuelva a intentarlo.
38
39if "%RBLANG%" == "fr" echo Greenstone nécessite une autorisation d'écriture dans le dossier
40if "%RBLANG%" == "fr" echo principal de Greenstone: %REALISTIC_BOOKS_HOME%,
41if "%RBLANG%" == "fr" echo mais pour l'instant cette autorisation n'existe pas.
42if "%RBLANG%" == "fr" echo Autorisez le « ContrÎle Total » sur ce dossier (et sur tous les sous-dossiers)
43if "%RBLANG%" == "fr" echo pour l'utilisateur courant (%username%) puis re-essayez.
44
45if "%RBLANG%" == "ru" echo Greenstone требуется разрешеМОе Ма запОсь в ЎПЌашМюю папку %REALISTIC_BOOKS_HOME%,
46if "%RBLANG%" == "ru" echo в ЎаММый ЌПЌеМт запОсь в ЎПЌашМюю папку запрещеМа.
47if "%RBLANG%" == "ru" echo ППжалуйста устаМПвОте ППлМый ЎПступ Ўля папкО (О всех
48 влПжеММых
49 папПк)
50if "%RBLANG%" == "ru" echo Ўля текущегП пПльзПвателя (%username%) О пПпрПбуйте заМПвП.
51
52echo.
53
54if "%RBLANG%" == "en" echo (Alternatively, re-install Greenstone to a location where you have Full
55if "%RBLANG%" == "en" echo Control already, such as a your home folder or 'My Documents'.)
56
57if "%RBLANG%" == "es" echo (Alternativamente, reinstale Greenstone en una localización en la que tenga “Control completo”,
58if "%RBLANG%" == "es" echo como su directorio raíz o “Mis documentos”).
59
60if "%RBLANG%" == "fr" echo (Alternativement, re-installez Greenstone à l'emplacement où vous avez déjà le « ContrÎle Total »,
61if "%RBLANG%" == "fr" echo comme votre dossier d'accueil ou "Mes Documents".)
62
63if "%RBLANG%" == "ru" echo (ЛОбП, переустаМПвОте Greenstone в ту папку, к кПтПрПй Вы уже ОЌеете пПлМый ЎПступ,
64if "%RBLANG%" == "ru" echo МапрОЌер в свПю ЎПЌашМюю папку ОлО в папку "МПО ЎПкуЌеМты".)
65
66echo.
67echo.
68echo.
69echo.
70goto TheEnd
71
72:EnvNotSet
73echo REALISTIC_BOOKS_HOME not set
74
75:TheEnd
Note: See TracBrowser for help on using the repository browser.