tool.exe is not a shell, it isn't processing "> log.txt 2>&1" so stop giving it that, it doesn't know what to do with that information
The program you want to call is cmd.exe, read more at help cmd and Win32::Process redirect CMD output to text file
In reply to Re^2: Win32::Process::Create fails when i use ">" to redirect the screen output to a file
by Anonymous Monk
in thread Win32::Process::Create fails when i use ">" to redirect the screen output to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |