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
|