473,385 Members | 1,782 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,385 software developers and data experts.

System.Diagnostic.Process.Start Help

I have a vb.net app using a shell command because I can't
figure out how to use the string with the
system.process.start. I would like to convert it so I
can do a little error checking to determine if the
process was successful or if it failed.

My shell command is:
c:\cwrsync\rsync.exe -vvrtz --progress --include=*.prx

I am calling the c:\cwrxync\rsync.exe and passing the
paramaters after that.

Can someone show me how to take this and sucessfully use
process.start.

I have tried passing the whole string and that doesn't
work.

process.start("c:\cwrsync\rsync.exe -vvrtz --progress --
include=*.prx")

Do I need to start the exe on it's own and then pass in
the paramaters?

Thanks
Nov 20 '05 #1
1 5171
* "brian" <bs******@lbrspec.com> scripsit:
I have a vb.net app using a shell command because I can't
figure out how to use the string with the
system.process.start. I would like to convert it so I
can do a little error checking to determine if the
process was successful or if it failed.

My shell command is:
c:\cwrsync\rsync.exe -vvrtz --progress --include=*.prx

I am calling the c:\cwrxync\rsync.exe and passing the
paramaters after that.

Can someone show me how to take this and sucessfully use
process.start.

I have tried passing the whole string and that doesn't
work.

process.start("c:\cwrsync\rsync.exe -vvrtz --progress --
include=*.prx")

Do I need to start the exe on it's own and then pass in
the paramaters?


\\\
Dim psi As New ProcessStartInfo()
psi.FileName = "foo.exe"
psi.Arguments = "--alltheotherstuff"
Process.Start(psi)
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alex | last post by:
Hello, in my company, we have a diagnostic tool for hardware. Depending on the hardware projcet, a different project configuration is needed. The configuration file is written in XML and...
0
by: Stefan Turalski \(stic\) | last post by:
Hi, I need help with one thing - I've simple update application, it's chceck with FineInfo class if file in server has last write time > than file on my disc, if yes it is just update my file...
2
by: adish11 | last post by:
I'm using Web Application and want to execute an MSDOS executable with some parameters like this example: software.exe -i -x How do I use System.Diagnostic.Process to execute this .exe with...
5
by: Michael Johnson Sr. | last post by:
I am starting and stopping a process using System.Diagnostic.Process. aspnet_wp is running as system rather than machine (as per machine.config modification). When the process gets started, it...
0
by: Michael Johnson Sr. | last post by:
I am starting and stopping a process using System.Diagnostic.Process. aspnet_wp is running as system rather than machine (as per machine.config modification). When the process gets started, it...
5
by: Paul Bergson | last post by:
I have been trying to get a process to start up and run with arguments passed to it. I have gotten close (Thanks to help from this board) but I there is a failure while I'm running this because...
3
by: sandro72 | last post by:
I found the classes you wrote of but it doesn't work. i tested also this code but it cretaes instances of worpad.exe that i only see by task manager and i cannot terminate them. have you any...
0
by: SyGC | last post by:
Greetings All, Ive been able to initiate a system restart in my VB.NET application on a button click with the following code; Private Sub Button1_Click(ByVal sender As System.Object, ByVal...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.