@echo off cls rem rem script to build demonstration MDweb 1.6 database on windows rem echo "" set /p bdmdweb=Name of MDweb database ? : echo "" if("%bdmdweb%")==("") goto bd_vide echo ---------------------------------------------------------- echo the MDweb database : %bdmdweb% will be created echo ----------------------------------------------------------- pause rem pg_dump -d %bdmdweb% -U postgres > backup-%bdmdweb%.sql rem dropdb %bdmdweb% -U postgres createdb %bdmdweb% -E LATIN1 -T template0 -U postgres psql -d %bdmdweb% -U postgres < dump-mdweb-demo16-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