By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,043 Members | 1,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,043 IT Pros & Developers. It's quick & easy.

Parameters for a Process.Start

P: n/a

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
Jul 5 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo.comwrote:
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

Jul 5 '07 #2

P: n/a

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo.comwrote:
>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
Seth,
Nope..... throws the same error. Got any more ideas<g>
Ed
Jul 5 '07 #3

P: n/a
Ed,

On this page on our website some samples.

http://www.vb-tips.com/dbpages.aspx?...a-14d6b93856e8

Cor

"Ed Bitzer" <ed******@yahoo.comschreef in bericht
news:e1**************@TK2MSFTNGP04.phx.gbl...
>
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

Jul 5 '07 #4

P: n/a
On Jul 5, 1:11 pm, "Ed Bitzer" <edbit...@yahoo.comwrote:
"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11**********************@m36g2000hse.googlegr oups.com...
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo.comwrote:
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

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

Jul 5 '07 #5

P: n/a

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@m36g2000hse.googlegr oups.com...
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo.comwrote:
>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
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
Jul 5 '07 #6

P: n/a

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:um**************@TK2MSFTNGP03.phx.gbl...
Ed,

On this page on our website some samples.

http://www.vb-tips.com/dbpages.aspx?...a-14d6b93856e8

Cor

"Ed Bitzer" <ed******@yahoo.comschreef in bericht
news:e1**************@TK2MSFTNGP04.phx.gbl...
>>
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
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
Jul 5 '07 #7

P: n/a
On Jul 5, 1:32 pm, "Ed Bitzer" <edbit...@yahoo.comwrote:
"Cor Ligthert [MVP]" <notmyfirstn...@planet.nlwrote in messagenews:um**************@TK2MSFTNGP03.phx.gbl. ..
Ed,
On this page on our website some samples.
http://www.vb-tips.com/dbpages.aspx?...bb-8f3a-14d6b9...
Cor
"Ed Bitzer" <edbit...@yahoo.comschreef in bericht
news:e1**************@TK2MSFTNGP04.phx.gbl...
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

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/micro...s?lnk=sg&hl=en

Thanks,

Seth Rowe

Jul 5 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.