System does a fork to execute the command, so yes, you get the output in your current window. If you need a separate window to stay open, you will want to use one of the Win32 modules on CPAN. Check out Win32::GUI::Tutorial.
The addition of the start command does open a new window, and transfers the focus to it. On my computer, it does not execute the dir command. But still does not help with your problem. Once having done the dir command, what next? I think that will dictate whether or not you can handle this with a properly formatted commandline or need to interact with the window in a way that the Win32 modules will allow.
In reply to Re: Open new cmd prompt and list directory content on it
by GotToBTru
in thread Open new cmd prompt and list directory content on it
by minmin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |