ProcessStartInfo start = new ProcessStartInfo("cmd.exe","/c C:\\Perl\\bin\\Perl.exe /bin/perl /desk/desk.py cmd.exe");
Process.Start(start);
The above lines will invoke command prompt and open another command prompt window(which is nothing but perl command prompt)...
i need to invoke a command (perlpackagemanager) in the new window which im not able to do..please help me on this......
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted May 20, 2013, 10:39 AM EDT
ProcessStartInfo start = new ProcessStartInfo("cmd.exe","/c C:\\Perl\\bin\\Perl.exe /bin/perl /desk/desk.py \"cmd.exe perlpackagemanager\"");
Process.Start(start);
If that doesn't work, then I'd try creating a batch file to open a new command window and call perlpackagemanager and then use the batch file as an argument in place of the second cmd.exe.