Hi All,


I am working on C# console application and when I tried to access the exe of
the project from the remote machine, I am getting some problem. The main
functionality is “The exe will execute couple of batch files, which are
exist in the exe folder only.

Currently, we have placed all required batch files and the exe in a shared
folder of a server machine and we are accessing the exe from the client
machines.

When we tried to access the exe from the server machine, we are not getting
any problem. But, when ever we tried to access the exe from the client
machine, we are getting the problem.

Here is my sample code:

ProcessStartInfo psi = new ProcessStartInfo ( );

psi.WindowStyle = ProcessWindowStyle.Normal;

psi.FileName = @”Gen.bat”

psi.Arguments = args;

psi.UseShellExecute = false;

psi.RedirectStandardOutput = stdout;

psi.WorkingDirectory = Environment.CurrentDirectory;

Process process = new Process ( );

process.StartInfo = psi;

process.Start ( );

The above code was implemented for execution of the batch files. I don’t the
reason, why the above code is giving the problem, when we tried to access it
from the remote machines.

Could you please let me know “Is there any mistake in my code” and how to
solve the above one?

Thanks in Advance

Kiran**

* *

Reply via email to