Reputation: 5819
I'm working on an ASP.NET\C# application.
I'm trying to execute a process in a remote machine using system.Diagnostics.process and Sysinternals PsExec.
Here's my code example:
ProcessStartInfo startInfo = new ProcessStartInfo("psexec");
startInfo.Arguments = string.Format(CultureInfo.CurrentCulture, @"\\machineNAme c:\someDir\Command.exe");
startInfo.UseShellExecute = false;
Process process = new Process();
StreamReader reader = null;
process.StartInfo = startInfo;
process.Start();
Command.exe is just a simple test to open cd crive. This code works on a web app on localhost but not on my webapp that is currently on iis.
What am I missing? tks
Upvotes: 0
Views: 1402
Reputation: 21
You can execute a process in a remote machine using this web based tool ASN Active Directory Network Manager.
Upvotes: 1
Reputation: 38543
Permissions. You cannot control that hardware from a web app. Possibly an ActiveX control.
Upvotes: 0