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

Starting a process with multiple arguments

Hi all!

Please help me with this, I'm stuck here.
I have a command line .exe file which needs a few arguments passed to do
it's job.

In help there's a example like this:

Process.Start("notepad.exe", "something.txt");

This is ok, but what if I must supply .exe with multiple arguments.
Something like this:

PTStitcher -o outputpano script.txt imagein

Real example:
PTStitcher.exe -o c:\path\pic.tif script.txt c:\path\pic01.jpg

How to pass this four arguments to PTSctitcher.exe ?

Thanks in advance!
Nov 16 '05 #1
1 12865
Hi CroDude,

Create an instance of Process and set it's StartInfo property, something
like this:

Process ptStitcher = new Process();

ptStitcher.StartInfo.FileName = "PTStitcher.exe";
ptStitcher.StartInfo.Arguments = "-o c:\path\pic.tif script.txt
c:\path\pic01.jpg";

ptStitcher.Start();

Joe
--
http://www.csharp-station.com

"CroDude" <di***********@zg.htnet.hr> wrote in message
news:cr**********@news1.xnet.hr...
Hi all!

Please help me with this, I'm stuck here.
I have a command line .exe file which needs a few arguments passed to do
it's job.

In help there's a example like this:

Process.Start("notepad.exe", "something.txt");

This is ok, but what if I must supply .exe with multiple arguments.
Something like this:

PTStitcher -o outputpano script.txt imagein

Real example:
PTStitcher.exe -o c:\path\pic.tif script.txt c:\path\pic01.jpg

How to pass this four arguments to PTSctitcher.exe ?

Thanks in advance!

Nov 16 '05 #2

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

Similar topics

6
by: Saso Zagoranski | last post by:
Hi! I'm trying to run a decryption utility (des), which needs the following parameters: -D-u -k "key" input.file output.file If I run this from the command-prompt it works but when I try to...
0
by: Shruti A via .NET 247 | last post by:
hello group I have recently started working on .Net platform. I am facing one problem in killing and starting process from my aspx page. I am able to kill and start the same process from vb.net...
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...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
6
by: tatamata | last post by:
Hello. How can I run some Python script within C# program? Thanks, Zlatko
1
by: mikelujan | last post by:
Hi, Our application starts an external application using System.Diagnostics.Process class and the Start() method, as per code snippet below. This application run as a Windows service, and must...
3
by: Marcin Kalicinski | last post by:
How do I use multiple Python interpreters within the same process? I know there's a function Py_NewInterpreter. However, how do I use functions like Py_RunString etc. with it? They don't take any...
1
by: stemp1ar | last post by:
I am wondering if it possible to open a single process and run multiple commands on that process and check standard error and standard out after each command? Has anyone done something similar...
0
by: Dominic | last post by:
Every thing work fine when I am not starting process as another user. When I am starting process as another user, the authentication is working (I can see it in my workstation security log), but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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: 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
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?

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.