Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I have a requirement to execute the insert scripts using sqlplus(ORACLE DB). Here, I need to prompt the user to give input as drop, create and insert(DCI) or Create, insert(CI) or only insert(I).

So based on the option given by user I need to perform process using "sqlplus.exe".
Can any one help regarding this.

Thanks in advance.
Posted
Updated 2-Mar-11 19:44pm
v2

Simply provide the start parameters along with the exe in the start command of the process.

e.g.
MIDL
Process.Start("IExplore.exe", "www.northwindtraders.com");
 
Share this answer
 
Comments
Albin Abel 3-Mar-11 1:13am    
simple and correct. my 5
Sergey Alexandrovich Kryukov 3-Mar-11 1:21am    
Agree, my 5, too. I just added my answer for clarification, in attempt to remove confusion about "Command prompt".
--SA
Abhinav S 3-Mar-11 1:39am    
Thank you.
Do you mean Command Prompt, CMD.EXE application? Chances are, you don't need it.
You can start the process you want directly, as Abhinav just suggested, using System.Diagnostics.Process, read for more information: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900