Best way to set environment variable and execute command in one line

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Best way to set environment variable and execute command in one line



I want to make a backup with PostGreSQL pg_dump command with command line like :


"<c:Program FilesPostgreSQL9.6binpg_dump>" -h localhost -p 5432 -d test_backup_bat -U user -f D:destination_backuptest.backup



but I need to set PGPASSWORD before as environment variable to execute the backup command


PGPASSWORD=mypassword



How can I make this in only one command line into Windows CLI ?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

'Series' object is not callable Error / Statsmodels illegal variable name