By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,871 Members | 2,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,871 IT Pros & Developers. It's quick & easy.

How to get password once from user and use that in entire MSDOS batch file.

P: 1
I want to execute some set of Postgres routines like
psql,pg_dump,pg_restore in a single MSDos batch file. I want to prompt user only once for password and use that in entire batch file with out asking user everytime..
I used set PGPASSWORD=my_password.. but this prints password on screen.. due to security issues I dont want to use this.

Can some one please guide me is there a way to do this.

Thanks in adavance,
Dec 17 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.