Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Form Application with Console Application
    primarykey
    data
    text
    <p>I have a console application that asks for a <strong>SourcePath</strong> when started.. when I enter the Source Path, It asks for <strong>DestinationPath</strong>... when i enter DestinationPath it starts some execution</p> <p>My Problem is to Supply these path via a windows application, means i need to create a window form application that will supply these parameters to the console application automatiocally after certain time interval</p> <p>can it be achieved or not... if yes, plese help... its very Urgent...</p> <p>ohh.. I have tried a lot of code that i can not paste hear all but some that i use to start the application are...</p> <pre><code> ProcessStartInfo psi = new ProcessStartInfo(); psi.FileName = @"C:\Program Files\Wondershare\PPT2Flash SDK\ppt2flash.exe"; psi.UseShellExecute = false; psi.RedirectStandardError = true; psi.RedirectStandardInput = true; psi.CreateNoWindow = false; psi.Arguments = input + ";" + output; Process p = Process.Start(psi); </code></pre> <p>and</p> <pre><code> Process process = new Process { StartInfo = new ProcessStartInfo { CreateNoWindow = true, FileName = @"C:\Program Files\Wondershare\PPT2Flash SDK\ppt2flash.exe", RedirectStandardError = true, RedirectStandardOutput = true, UseShellExecute = false, } }; if (process.Start()) { Redirect(process.StandardError, text); Redirect(process.StandardOutput, text); MessageBox.Show(text); } private void Redirect(StreamReader input, string output) { new Thread(a =&gt;{var buffer = new char[1]; while (input.Read(buffer, 0, 1) &gt; 0) { output += new string(buffer); }; }).Start(); } </code></pre> <p>but nothing seems to be working</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload