Call VB6.0 exe from c#

  • Thread starter Thread starter pargat.singh
  • Start date Start date
P

pargat.singh

Hi Everyone:

I have VB 6.0 exe program which currently i am calling through batch
file.I need to use the same program from C# program and i am doing as
below which is not working

System.Diagnostics.Process runner = new
System.Diagnostics.Process();
runner.StartInfo.FileName = @"\\xxxx\yyyy\fff\uuu\ABC.exe" ;
string sParameter = "FOLDER" + " " + firstParameter + "
" + secondParameter ;
runner.StartInfo.Arguments = sParameter ;

runner.Start();
runner.WaitForExit();

Can any please tell me how can i call above program.I don't want to
call through batch file.

Thanks in advance.

Pargat
 
Sorry, i mean below code does not call my VB ABC.exe

System.Diagnostics.Process runner = new
System.Diagnostics.Process();
runner.StartInfo.FileName = @"\\xxxx\yyyy\fff\uuu\ABC.exe" ;
string sParameter = "FOLDER" + " " + firstParameter + "
" + secondParameter ;
runner.StartInfo.Arguments = sParameter ;

runner.Start();
runner.WaitForExit();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top