;$sError = ShellExecute("help", "dir > helpdir.txt", "", "", @SW_MAXIMIZE) ;Fail ;$sError = ShellExecute("help", "dir", "", "", @SW_MAXIMIZE) ; ok ;$sError = ShellExecute("diskspd.exe", "-b128K -d1 -c64M f:\estfile.dat > test123.txt", "", "", @SW_MAXIMIZE) ; Fail $sError = ShellExecute("diskspd.exe", "-b128K -d1 -c64M f:\estfile.dat ", "", "", @SW_MAXIMIZE) ; ok exit