Instalation batch file

Поиск
Список
Период
Сортировка
От Zlatko Matić
Тема Instalation batch file
Дата
Msg-id 000f01c59873$5e8c4840$58221dc3@zlatkovyfkpgz6
обсуждение исходный текст
Ответы Re: Instalation batch file  (Glenn Davy <gdavy@tpg.com.au>)
Список pgsql-general
Hello.
 
I would like to install database schema on a server using  files with dumped schema and globals (produced by dumpall), that are placed on CD. The installation script (batch file) that restores these two files is also placed on the same CD, (let's say E:) in the same folder.
 
cd C:\Program Files\PostgreSQL\8.0\bin
psql -f E:\MYBASE_SHEMA.dumpall template1 -U zmatic
psql -f E:\MYBASE_SHEMA.dumpall template1 -U zmatic
vacuumdb -d MYBASE -U zmatic
But, what if CD is F: or some other unit ? 
How could I change this batch file (Windows XP) to be able to recognize what is the actual path of the folder that containes these three files ?
 
Thanks in advance,
 
Zlatko

В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Chille
Дата:
Сообщение: initskript after db start; locks on transactions
Следующее
От: Havasvölgyi Ottó
Дата:
Сообщение: Re: feeding big script to psql