Connecting Tech Pros Worldwide Help | Site Map

Execute A Psql Commands Through Batch File (*.bat)

Newbie
 
Join Date: Mar 2008
Posts: 1
#1: Mar 17 '08
Hi ,
How To Execute A Psql Commands Through Batch File(.bat). My Aim Is , Usting Batch File , Connect The Database And Then Execute The Psql Statements.
Moderator
 
Join Date: Dec 2006
Location: Europe
Posts: 292
#2: Mar 17 '08

re: Execute A Psql Commands Through Batch File (*.bat)


Quote:

Originally Posted by GOPALA

Hi ,


How To Execute A Psql Commands Through Batch File(.bat).

My Aim Is , Usting Batch File , Connect The Database And Then Execute The Psql Statements.

is bat. file under windows? (sorry for my lack of knowledge)
Can't you use psql command with -c option?
Reply