@echo off cls rem rem script to build demonstration thesaurus on windows rem set /p bdmdweb=Give the name of thesaurus database for MDweb ? : if("%bdmdweb%")==("") goto bd_vide echo --------------------------------------------------------------------- echo the Thesaurus MDweb database : %bdmdweb% will be created echo by default Agrovoc thesaurus is given with a example echo of specific thesaurus application echo ---------------------------------------------------------------------- pause pg_dump -d %bdmdweb% -U postgres > backup-%bdmdweb%.sql dropdb %bdmdweb% -U postgres createdb %bdmdweb% -E UNICODE -T template0 -U postgres psql -d %bdmdweb% -U postgres < dump-thesaurus-fra.sql goto end :bd_vide echo ---------------------------------------------------- echo you don't input the name of MDweb database echo ---------------------------------------------------- pause goto eof :eof echo -------------------------------------------------- echo the MDweb database creation was aborted echo -------------------------------------------------- pause exit :end echo --------------------------------------------------------------------------- echo the creation of MDweb database named : %bdmdweb% is successful echo --------------------------------------------------------------------------- pause