Thanks MCA,

Your probably right. I just was not sure if it should be done that way or not. But using my single quotes is probably telling it to be run as a single command and the program is not found as a single command. I was afraid though of the command not getting the parameters (the e:\erp_v9\bin\orama orama_logon/orama_logon@@DBSFI) portion if I split the quotes.

X please give MCA's code a try and let us know.