Parameters for a Process.Start

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
 
R

rowe_newsgroups

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
 
E

Ed Bitzer

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
 
R

rowe_newsgroups

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
 
E

Ed Bitzer

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
 
R

rowe_newsgroups

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
 

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

Top