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

Launching a Process using Process.StartInfo

MVB
Hi,

I am trying to call a process from my c# application.
I want to execute certain number of arguments one after the other .

For e.g
In Diskpart.exe
I want to first execute "List Disk"
Then I want to execute "Select Disk x"

Is that possible to do programmatically(specially in c#)
I am aware of the concept called piping(writetopipe() in c++)
Is there anything similar in c# .NET

Help would be appreciated

Thanks.
Feb 8 '06 #1
1 1375
MVB wrote:
Hi,

I am trying to call a process from my c# application.
I want to execute certain number of arguments one after the other .

For e.g
In Diskpart.exe
I want to first execute "List Disk"
Then I want to execute "Select Disk x"

Is that possible to do programmatically(specially in c#)


I would try using the Process.RedirectStandardInput property (along with
Process.StandardInput).

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Feb 8 '06 #2

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

Similar topics

1
by: Drew Lettington | last post by:
I want to launch an installation (setup.exe) from a Web Server using via a URL. I currently accomplish this by passing the URL to IE: System.Diagnostics.Process ieProcess = new...
1
by: R.A. | last post by:
Hi How can I launch the windows installer from c# application? Thanks
0
by: timandsuzi36 | last post by:
I have a WinForms App that is launching an Access 2003 db Reports program. I am using the System.Diagnostics.Process object to do so. I thought that I could pass my db connection string to Access...
0
by: Aaron | last post by:
Hi, Anybody please help me out. I have writtern an executable which i have managed to call from ASP.NET pages using the following code : oProcess.StartInfo.FileName =...
2
by: James N | last post by:
PROBLEM # 1: ----------------- I am trying to launch a website in IE on the server from a C#/ASP.NET web service. I am using the System.Diagnostics namespace and the Process class methods. The...
0
by: Scott Zabolotzky | last post by:
I'm using the following code to launch SIGNCODE.EXE to sign a CAB provisioning file from an ASP.NET app. When I run the code the exit code comes back as -1. I have not been able to determine what...
2
by: andreas | last post by:
hi, In windows xp in the start launch menu when i put notepad "c:\test.txt" i get notepad with test.txt in it. in vb.net when i state system.diagnostics.process.start("notepad.exe" i get...
3
by: Michael Moreno | last post by:
Hello, I am trying to automatically compile all my projects but I am stuck on something silly: launching csc with the right arguments. Here is my code private void CompileProject(string...
0
by: ee_stevek | last post by:
hi guys, here is my problem: i have to maintain a web vb.net application developped some times ago. The application was developped on Windows2000 SP3 with Visual Studio 2003 (7.1). and the...
0
by: spamfilteraccount | last post by:
Hi, I have simple GUI with a listbox containing file names. If I select a file and press ENTER it should be opened. It works, but things are working strangely. Here's the code I use to open...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.