Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak18-Sep-07 17:20
mveDave Kreskowiak18-Sep-07 17:20 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:39
Don Dang19-Sep-07 9:39 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak19-Sep-07 11:58
mveDave Kreskowiak19-Sep-07 11:58 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 12:27
Don Dang19-Sep-07 12:27 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak19-Sep-07 15:16
mveDave Kreskowiak19-Sep-07 15:16 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult19-Sep-07 17:52
mvePIEBALDconsult19-Sep-07 17:52 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak20-Sep-07 1:56
mveDave Kreskowiak20-Sep-07 1:56 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:11
Don Dang19-Sep-07 9:11 
if I don't include the path and the filename"
string execPath = @"\\" + servername + @"\E:\datacenter\";
string filePath = execPath + "HSMDiskStatus.exe";
proc.StartInfo.FileName = filePath;

how would the code know to connect to the remote server? Also, I comment out the code line:
// proc.StartInfo.WorkingDirectory = execPath;
I still get the incorrect parameter error.

proc.StartInfo.UseShellExecute = false;
proc.StartInfo.Password = secret;
// proc.StartInfo.WorkingDirectory = execPath;
System.Diagnostics.Process.Start("HSMDiskStatus.exe ", @"/F E:\DPSanChart\" + servername + ".txt");
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:20
Don Dang19-Sep-07 9:20 
AnswerRe: Execute a remote .exe file with switches using Proccess class Pin
ChrisKo18-Sep-07 11:19
ChrisKo18-Sep-07 11:19 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang18-Sep-07 11:58
Don Dang18-Sep-07 11:58 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
ChrisKo18-Sep-07 12:26
ChrisKo18-Sep-07 12:26 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang18-Sep-07 12:36
Don Dang18-Sep-07 12:36 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
ChrisKo18-Sep-07 13:46
ChrisKo18-Sep-07 13:46 
AnswerRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult19-Sep-07 13:32
mvePIEBALDconsult19-Sep-07 13:32 
GeneralRegular Expressions [modified] Pin
#realJSOP18-Sep-07 10:27
mve#realJSOP18-Sep-07 10:27 
GeneralRe: Regular Expressions Pin
Jonathan [Darka]18-Sep-07 10:30
professionalJonathan [Darka]18-Sep-07 10:30 
GeneralRe: Regular Expressions Pin
#realJSOP18-Sep-07 10:36
mve#realJSOP18-Sep-07 10:36 
GeneralRe: Regular Expressions Pin
Jonathan [Darka]18-Sep-07 10:53
professionalJonathan [Darka]18-Sep-07 10:53 
GeneralRe: Regular Expressions Pin
Kevin McFarlane18-Sep-07 10:39
Kevin McFarlane18-Sep-07 10:39 
GeneralRe: Regular Expressions Pin
Chris Losinger18-Sep-07 10:42
professionalChris Losinger18-Sep-07 10:42 
GeneralRe: Regular Expressions Pin
#realJSOP18-Sep-07 10:51
mve#realJSOP18-Sep-07 10:51 
GeneralRe: Regular Expressions Pin
ChrisKo18-Sep-07 10:50
ChrisKo18-Sep-07 10:50 
GeneralRe: Regular Expressions Pin
Rocky Moore18-Sep-07 10:53
Rocky Moore18-Sep-07 10:53 
GeneralRe: Regular Expressions Pin
Shog918-Sep-07 11:03
sitebuilderShog918-Sep-07 11:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.