issue command line statements

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how would I run osql command from within console or windows application?

For e.g. how would I run following command, which I normally type on command
prompt

osql /U alma /P mypassword /i titles.qry /o titles.res

thanx
 
Job Lot said:
how would I run osql command from within console or windows application?

For e.g. how would I run following command, which I normally type on
command
prompt

osql /U alma /P mypassword /i titles.qry /o titles.res

By using the Process class, something like:

using System.Diagnostics;
//...
Process.Start("x:\<path-to-osql>\osql.exe", "/U alma /P mypassword /i
titles.qry /o titles.res");

Examine the other overloads of start and the other members of Process for
more flexibility
 
Back
Top