If you're trying to run and wait for the the command to exit, have you tried using system(@command) instead?
In reply to Re: Problem with 'system' function in Windows Vista
by Joost
in thread Problem with 'system' function in Windows Vista
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |