Advertisement

04.05.2008 at 07:33AM PDT, ID: 23298331
[x]
Attachment Details

Passing parameters to executable from vb2005

Asked by esps in Miscellaneous Programming, Visual Studio .NET 2005

Hi Experts,
I need to call an executable from vb2005 with a specufic set of parameters
When I run the executable from the command prompt (DOS) with the following syntax:
c:\dist\snapshot "COM6" "R640x480" "c:\c328r\tt.jpg"  1
it works perfectly and the .jpg is created
from vb2005 I have tried a number of combinations but cannot seem to get the syntax right. Maybe the method I am using is wrong
The attached code snipped is what I am currently trying.
It does not give an error but does not work either
Please helpStart Free Trial
1:
2:
3:
4:
5:
6:
7:
Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
startInfo = New System.Diagnostics.ProcessStartInfo "c:\snapshot.exe")
pStart.StartInfo.Verb = "COM6, R640x480, c:\c328r\tt.jpg ,  1"
pStart.StartInfo = startInfo
pStart.Start()
pStart.WaitForExit()
[+][-]04.05.2008 at 02:39PM PDT, ID: 21289756

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Miscellaneous Programming, Visual Studio .NET 2005
Sign Up Now!
Solution Provided By: ravs
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.06.2008 at 03:14AM PDT, ID: 21291310

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 04:12AM PDT, ID: 21295705

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 04:15AM PDT, ID: 21295717

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 10:12PM PDT, ID: 21302744

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628