Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Re: A few random questions.by SquireJames (Monk) |
on Dec 10, 2003 at 01:06 UTC ( [id://313628]=note: print w/replies, xml ) | Need Help?? |
All you need to do to run a command with options is to join them in one long string. eg.
However, this won't work with the command prompt as you can't pass further instructions to a command line without a special option switch (/K). I don't really understand why you need to open another DOS Box to run something, as the system() command will wait for the process to terminate before continuing. Nevertheless, with the /K option, your script should open a new DOS box to run the script.
However, if you can't get what you want out of system(), then check out Win32::Process, this has numerous facilities for creating and manipulating processes, you can even suspend or kill processes at a PID level. As for the TK question, I'm afriad that I haven't even started looking at TK yet.
In Section
Seekers of Perl Wisdom
|
|