Best way to set environment variable and execute command in one line
Clash 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.