Parameters for a Process.Start

  • Thread starter Thread starter Ed Bitzer
  • Start date Start date
E

Ed Bitzer

When I use System.Diagnostics.Process.Start("D:\MyDialer.exe 123 456
1234") attmpting to run a dialer from my program, I get an error 5
"The system cannot fine the file specified" If I eliminate the
command line phone number, MyDialer is run but of course without the
necessary command line. Appreciate some help.

Ed
 
When I use System.Diagnostics.Process.Start("D:\MyDialer.exe 123 456
1234") attmpting to run a dialer from my program, I get an error 5
"The system cannot fine the file specified" If I eliminate the
command line phone number, MyDialer is run but of course without the
necessary command line. Appreciate some help.

Ed

What about:

Dim pi As New ProcessStartInfo("D:\MyDialer.exe", "123 456
1234")
Process.Start(pi)

Thanks,

Seth Rowe
 
rowe_newsgroups said:
What about:

Dim pi As New ProcessStartInfo("D:\MyDialer.exe", "123 456
1234")
Process.Start(pi)

Thanks,

Seth Rowe

Seth,
Nope..... throws the same error. Got any more ideas<g>
Ed
 
Seth,
Nope..... throws the same error. Got any more ideas<g>
Ed

Are you sure the parameters are correct?

Also, can you type D:\MyDialer.exe 123 456 1234 into the command
prompt and have it work properly?

Try this and see if it works:

Dim pi As New ProcessStartInfo("ping.exe", "-a www.google.com")
Process.Start(pi)

Thanks,

Seth Rowe
 
rowe_newsgroups said:
What about:

Dim pi As New ProcessStartInfo("D:\MyDialer.exe", "123 456
1234")
Process.Start(pi)

Thanks,

Seth Rowe

Seth,

I'm sorry - after I received Cor's direction, I could not figure why
your suggestion did not work and I found the problem - a typo when I
went to implment. Your suggestion worked fine.

Ed
 
Thanks Cor,

By reviewing your site suggestions I found a previous mistake. After
checking your site out I realize I should often start my searches
there rather than impose on the group.

Ed

checking your site out I realize I should often start my searches
there rather than impose on the group.

As well as Cor and Ken's site you should also search the archives of
this newsgroup at http://groups.google.com/group/microsoft.public.dotnet.languages.vb/topics?lnk=sg&hl=en

Thanks,

Seth Rowe
 
Back
Top