----- Original Message ---- From: Tony van Lingen <tony.vanlingen@xxxxxxxxxxxxxx> On unix: $ lsnrctl <<EOF > set password pa55w0rd > show log_directory > EOF ... In windows I don't think you get it to work - unless you use Cygwin...but that would be cheating :) Tony, Steven In windows, you can always turn it on its head (as always with Windows its just not quite so elegant): ( echo set password %my_password_env_variable% echo show log_directory echo any more commands you like ) | lsnrctl HTH Regards Nigel