@echo off cls rem rem script to update the database of MDweb 1.5 for MDweb version 1.6 on windows rem echo "" set /p bdmdweb=Name of MDweb database to update? : echo "" if("%bdmdweb%")==("") goto bd_vide echo ---------------------------------------------------------- echo the database MDweb : %bdmdweb% will be updating echo ----------------------------------------------------------- pause psql -d %bdmdweb% -U postgres < update15216.sql goto end :bd_vide echo ---------------------------------------------------- echo you don't input the name of MDweb database echo ---------------------------------------------------- pause goto eof :eof echo -------------------------------------------------- echo the update of MDweb database was aborted echo -------------------------------------------------- pause exit :end echo ------------------------------------------------------------------------ echo the update of MDweb database named : %bdmdweb% is successful echo ------------------------------------------------------------------------ pause