473,396 Members | 2,113 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,396 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 5172
* "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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.