VB.NET 2005: Process.start...?

VB.NET 2005: Process.start...?

am 15.10.2007 20:55:04 von Peter

Hello,
we've a third-party software based on Java and i've to start it from a
vb.net programm where the users select what they want to see by this
java-prog and we create a commandline with different parameters in vb.net.

Because it uses Java 1.5 and some PCs habe also 1.6 installed, i make a
"hard coded" path to the application and the javaws.exe, therefore i need ""
in the commandline.
Using this commandline on the winXP-commandline-Prompt ("DOS-Box"), it will
start without problem, within the vb.net with
process.start("c:\bc\bcbin\BcPat\Inovit\remotecall.exe -app
""c:\Programme\Java\jre1.5.0_01\bin\javaws
c:\bc\bcbin\bcpat\inovit\visionweb.jnlp"" -accessno 150774")
it generates file not found error.

How can i solve it?

Thanks!
Peter

Re: VB.NET 2005: Process.start...?

am 16.10.2007 05:49:19 von notmyfirstname

Peter,

You can use the parameter options.

See here some samples.

http://www.vb-tips.com/StartProcess.aspx

Did you know that there is a newsgroup which is better for VB language
questions, although this is a question that applies for all languages.

news:\\Micrososoft.public.dotnet.languages


Cor

Re: VB.NET 2005: Process.start...?

am 16.10.2007 20:35:04 von Peter

Hi,
Thanks for the tip, the problem is solved!

Peter

"Cor Ligthert[MVP]" wrote:

> Peter,
>
> You can use the parameter options.
>
> See here some samples.
>
> http://www.vb-tips.com/StartProcess.aspx
>
> Did you know that there is a newsgroup which is better for VB language
> questions, although this is a question that applies for all languages.
>
> news:\\Micrososoft.public.dotnet.languages
>
>
> Cor
>