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

interacting with a process

Hello I was wondering if someone could point to me information on how to start an external process and how to interact with it

For example

In my C# program I want to start a process that will xcopy d:\*.* f:If the same file exist on f:\, xcopy will throw a prompt asking for y to continue
I would like the C# to on select occassion issue the y or n

This is just an example of the interaction of the process I am looking for. Writing a file copying script without using xcopy is pretty simple
I'm just looking for a way to interact with a process like that

Thank you

Jul 21 '05 #1
2 1136
Cor
Hi Michael,

http://msdn.microsoft.com/library/de...ClassTopic.asp
http://msdn.microsoft.com/library/de...starttopic.asp
I hope this helps a little bit?

Cor

In my C# program I want to start a process that will xcopy d:\*.* f:If the same file exist on f:\, xcopy will throw a prompt asking for y to continue. I would like the C# to on select occassion issue the y or n.

This is just an example of the interaction of the process I am looking for. Writing a file copying script without using xcopy is pretty simple. I'm just looking for a way to interact with a process like that.

Thank you.

Jul 21 '05 #2
Take a look at System.Diagnostics.Process - you should find what you need

(and don't ask why it's under "Diagnostics":-

Richard.
Jul 21 '05 #3

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

Similar topics

1
by: ls | last post by:
Hi, The following URL a has a video entitled "Interacting With Web Sites in Code." The video explains exactly what I am trying to do which is to directly communicate with a website and...
0
by: Mr Bounce | last post by:
Hi, Probably well worn ground, this, but im stumped and need some help, if you could: I'm trying to write some code for a windows service that needs to run in the background polling a server...
1
by: Michael Quan | last post by:
Hello I was wondering if someone could point to me information on how to start an external process and how to interact with it For example In my C# program I want to start a process that will...
5
by: Stephan Steiner | last post by:
Hi I'm trying to write a program that interacts with an interactive cli program, that is a program that does some processing but every now and then requires some user input. My problem is that...
2
by: Adam Clauss | last post by:
I am building a GUI to wrap around some of the information/abilities contained within the program netsh. I have figured out how to use redirect the standardinput and standardoutput so that I can...
2
by: Andreas Schmid | last post by:
Hi, I tried to launch Cmd.exe using System.Diagnostics and interact with it - issue commands and read their output. However, I only seem to be able to issue one command since I have to call...
1
by: Carl Woodward | last post by:
Dear all, I am writing an that performs automatic updates for one of our products. In order to ensure that the app can update \Program Files\Xxxx and SystemRoot\Drivers and use MoveFileEx to...
2
by: Vaughn Haybittle | last post by:
Hi, I have a few questions relating to web services. First some Background: I have developed two classes in ASP.Net (VB): 1) The first is a class that contains some fields that represent...
3
by: Eps | last post by:
Hi, I am writing an mp3 player using wpf, I have three user controls (media library, media controls and a playlist). Obviously I need these to interact with each other, I assume the best way to...
1
by: =?Utf-8?B?bWFib25k?= | last post by:
Hi I'm running an app that has been designed in VB.Net. Also running is an Internet Explorer window. At a certain point in my app I want to maximize the Internet Explorer window, give it the...
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: 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
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.