I want to execute a command to query DHCP Server. For that purpose I have written some code in perl. Now when I execute that perl file in command prompt using c# I get following errer "The specified executable is not a valid Win32 application." I have pasted the code below. Can anybody please suggest what could be the possible reason of this error message.
System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.WorkingDirectory = "c:\\Windows"; p.StartInfo.UseShellExecute = false; p.StartInfo.FileName = "lease_query.pl"; p.StartInfo.Arguments = "perl lease_query.pl " + ipAddress; p.StartInfo.CreateNoWindow = true; p.Start(); p.Close();