473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Parameters for a Process.Start


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
7 13041
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

"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
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
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

"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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: WaterBug | last post by:
When clicking on the following link from an email i.e - http://myserver/myapplication/myprogram.asp?urlvar1=some%20stuff&urlvar2=more%20stuff I get a server 500 error. With that same browser...
9
by: David Horowitz | last post by:
Hi. I have a query named Query1. Let's say it looks like this: Select * from Table1 where Field1= So whenever you run the query, it prompts for "Enter Value". So now, I have Report1, whose...
1
by: Michael Hetrick | last post by:
How would I pass parameters to a console application? I would like to do something like this: consoleapp.exe /o \\fileshare\origindirectory /d \\fileshare\destinationdirectory I'm not sure...
1
by: André Almeida Maldonado | last post by:
Hey Guys, how can I do to pass a parameter to my smart client (exe) from my aspx page??? Thank's
1
by: Legrooch | last post by:
I have ready service, that have only a code in OnStart(). Service is working ok. I have 2 VBScripts which must communicate with service. How make a communication service-script? Steps needed...
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
6
by: eric.goforth | last post by:
Hello, I have a simple batch file that I'm trying to call from a VB.NET application: @ECHO OFF IF (%1)==() GOTO END DIR %1 > MYDIR.TXT :END @ECHO ON
3
by: Rob | last post by:
I have an app that calls an eternal EXE using process.start. My issue is I have a couple command line parameters that need to be put in, so that it would read: Process p = new Process();...
11
by: Googy | last post by:
Hi friends!! As we know that the input parameters in a function is fixed when the function is defined but how does printf processes variable number of input arguments ? For example: 1....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.