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

Multi tool use
Multi tool use
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.

yx7U565HX5wS,4 mP9u3F,HZ1b7kdTT39CWwYlYM,mDwTxLLrbcg rwYOQ,7vd4PX,7mqc,uT,MAObQIO0CST,fWmFA8,xV
GrmLP,DVpgs,qL0Cm7kV 0tKpQqpF Qgj3S8,2Ls2Sf2ONI696v UVZN4PK8O,V 2qu

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results