Instalation batch file - Mailing list pgsql-general

From Zlatko Matić
Subject Instalation batch file
Date
Msg-id 000f01c59873$5e8c4840$58221dc3@zlatkovyfkpgz6
Whole thread Raw
Responses Re: Instalation batch file  (Glenn Davy <gdavy@tpg.com.au>)
List 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 by date:

Previous
From: Thomas Chille
Date:
Subject: initskript after db start; locks on transactions
Next
From: Havasvölgyi Ottó
Date:
Subject: Re: feeding big script to psql