If I'm understanding what you are asking (which seems unusual), your query is answered at stackoverflow. Example
system 'start cmd.exe @cmd /k "Command"';
Of course, that second bit isn't actually a Perl question.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
| [reply] [d/l] |
Are you sure you need to open cmd.exe and then execute a command in it? Perl can issue a command to windows, even run a dos/windows .bat file without having to run cmd.exe. Perhaps you should tell a bit more specifically what you want to do rather than asking us how to do it the way you think it might be done. This looks like a case of XY Problem. | [reply] [d/l] [select] |
You are right man.But thanks for the support of the perl monks community I got the work done.In future before asking something from you guys I will take care of the xy problem that you mentioned.
| [reply] |