A non-perl solution would be to take advantage of the "start" command that is available from the Windows command prompt. This command opens a new command prompt, runs a command in that new command prompt, and will by default immediately return control back to the original command prompt.
For example, if you open a command prompt and run the following:
start "test" dir c:
You should see a new command prompt get opened with the title of "test" and in the command prompt the command "dir c:" was run. Also, the original command prompt does not wait for the newly created command prompt before going back to waiting for user input.
So if you use the combination of system() (or back ticks) along with the "start" command, you should be able to accomplish what you want. Might not be the "best" way to do things, but should still enable you to issue command prompt commands from Perl and not wait for that command to finish before your code continues on.
In reply to Re: To run win command with perl with no wait for process to complete and perl to continue furher
by dasgar
in thread To run win command with perl with no wait for process to complete and perl to continue furher
by Selva123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |