I want to automate a MS-DOS command which requires a password, however the password can not be passed as one of the command line options. How can I do this?
The command I want to run is
dumpdata --schema=mydb mytable C:\temp\output.sql
[This command extracts data from an Oracle database in the form of Insert statements]
There is then a prompt for the password, which needs to be entered manually.
Removing the password (from the database) is not an option, as per Writing a batch file that enters a password when prompted
Thank you!