Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process.Start() Hide arguments?

Status
Not open for further replies.

RhythmAddict112

Programmer
Jun 17, 2004
625
US
Hey all,
Quick question...I'm using process.start() coupled with osql to connect to a db and run a proc. Trouble is, I want to hide my osql command line arguments (read:password)

How can I do this?

Thanks!

 
Hide from whom? You can start the process with no window, so the user wouldn't see it.

Code:
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.CreateNoWindow = true;

Then just do your thing. Does that answer your question?

----------------------------------------

TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top