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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted May 20, 2013, 2:39 PM
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.