473,666 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parameters for a Process.Start


When I use System.Diagnost ics.Process.Sta rt("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 13049
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
When I use System.Diagnost ics.Process.Sta rt("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 ProcessStartInf o("D:\MyDialer. exe", "123 456
1234")
Process.Start(p i)

Thanks,

Seth Rowe

Jul 5 '07 #2

"rowe_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ m36g2000hse.goo glegroups.com.. .
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
>When I use System.Diagnost ics.Process.Sta rt("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 ProcessStartInf o("D:\MyDialer. exe", "123 456
1234")
Process.Start(p i)

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******** ******@TK2MSFTN GP04.phx.gbl...
>
When I use System.Diagnost ics.Process.Sta rt("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_newsgroup s" <rowe_em...@yah oo.comwrote in message

news:11******** **************@ m36g2000hse.goo glegroups.com.. .
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
When I use System.Diagnost ics.Process.Sta rt("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 ProcessStartInf o("D:\MyDialer. exe", "123 456
1234")
Process.Start(p i)
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 ProcessStartInf o("ping.exe", "-a www.google.com" )
Process.Start(p i)

Thanks,

Seth Rowe

Jul 5 '07 #5

"rowe_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ m36g2000hse.goo glegroups.com.. .
On Jul 5, 12:33 pm, "Ed Bitzer" <edbit...@yahoo .comwrote:
>When I use System.Diagnost ics.Process.Sta rt("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 ProcessStartInf o("D:\MyDialer. exe", "123 456
1234")
Process.Start(p i)

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******** ******@TK2MSFTN GP03.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******** ******@TK2MSFTN GP04.phx.gbl...
>>
When I use System.Diagnost ics.Process.Sta rt("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* *************@T K2MSFTNGP03.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******** ******@TK2MSFTN GP04.phx.gbl...
When I use System.Diagnost ics.Process.Sta rt("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
2280
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 window open, if I click the link from the email again I get the desired page. The results are the same if the url is copied and pasted into the brower but the 'go' must be pressed twice. It appears that the server is trying to resolve the url vars...
9
2881
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 RecordSource is Query1. So when I run Report1, Access prompts "Enter Value". Everything's good so far.
1
18277
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 how to start the console app to read from the command line. Any assistance would be appreciated! Michael Hetrick
1
1427
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
1185
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 (example): 1) script send to service command "start checking system" 2) service run function (build-in) and sending result to script. 3) if system is ok script is going to next step (otherwise scipt is terminated)
7
3383
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 either AND or OR but never mixed together. We can use Northwind database for my question, it is very similar to the structure of the problem on the database I am working on. IF(SELECT OBJECT_ID('REPORT')) IS NOT NULL DROP TABLE REPORT_SELECTION
6
20383
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
24199
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(); p.EnableRaisingEvents = false; p.StartInfo.WorkingDirectory = "C:\\AutoPM\\AutoD\\"; //**TESTING p.StartInfo.CreateNoWindow = false; p.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
11
11051
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. printf("Hey! how are you"); /*No. of arguments = 1*/ 2. printf("Sum of %d and %d is %d",a,b,c"); /* No. of arguments = 4*/
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8355
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7381
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6191
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.