470,602 Members | 1,694 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,602 developers. It's quick & easy.

Batch processing in C#

Hi,
does someone has some links to information about how I would approach
and implement batch processing in C#?
Thanks!
Kind regards,
Ludwig
Feb 1 '08 #1
3 6097
On 1 Feb, 09:48, ludwig_stu...@hotmail.com wrote:
Hi,
does someone has some links to information about how I would approach
and implement batch processing in C#?
Thanks!
Kind regards,
Ludwig
you mean how to run a batch file?this code below will run a system
command:
{
ProcessStartInfo psiOpt = new ProcessStartInfo(@"cmd.exe", @"/c dir");
psiOpt.WindowStyle = ProcessWindowStyle.Normal;
psiOpt.RedirectStandardOutput = true;
psiOpt.UseShellExecute = false;
psiOpt.CreateNoWindow = true;
// Create the actual process object
Process procCommand = Process.Start(psiOpt);
// Receives the output of the Command Prompt
StreamReader srIncoming = procCommand.StandardOutput;
// Show the result
MessageBox.Show(srIncoming.ReadToEnd());
// Close the process
procCommand.WaitForExit();
}
Feb 1 '08 #2
Hi,

As mentioned by NoLogo, you could invoke the Command Shell to run the .BAT
file. Apart of that if you are interested to execute some functions as a
sequence of processes, you could try that with the Threading mechanism.

Thus, try to mention your requirement in more detail.

HTH

<lu***********@hotmail.comwrote in message
news:09**********************************@e4g2000h sg.googlegroups.com...
Hi,
does someone has some links to information about how I would approach
and implement batch processing in C#?
Thanks!
Kind regards,
Ludwig
Feb 1 '08 #3
On 1 feb, 11:38, "DSK Chakravarthy" <dskch...@msn.comwrote:
Hi,

As mentioned by NoLogo, you could invoke the Command Shell to run the .BAT
file. Apart of that if you are interested to execute some functions as a
sequence of processes, you could try that with the Threading mechanism.

Thus, try to mention your requirement in more detail.

HTH

<ludwig_stu...@hotmail.comwrote in message

news:09**********************************@e4g2000h sg.googlegroups.com...
Hi,
does someone has some links to information about how I would approach
and implement batch processing in C#?
Thanks!
Kind regards,
Ludwig- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -
Yes, you are right. I will ask for more information first, to see what
the lcient really wants.
Feb 3 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by DBA | last post: by
2 posts views Thread by Paul Reddin | last post: by
13 posts views Thread by guy | last post: by
4 posts views Thread by acantatore | last post: by
6 posts views Thread by Thomas Guettler | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.