Describe the bug
CMD version of the command line doesn't work
The current line
sCommand = 'CMD.EXE /C "' | sCommand | '" 1> ' | cCmdOutputFile | ' 2>&1';
Expected line
sCommand = 'CMD.EXE /C "' | sCommand | ' > "' | cCmdOutputFile | '" 2>&1"';
Description of changes
1> - it doesn't make sense in CMD
The whole statement after CMD.EXE /C should be included in double quotes, not the only sCommand
cCmdOutputFile may contain spaces, so it also needs to be enclosed in double quotes
Describe the bug
CMD version of the command line doesn't work
The current line
sCommand = 'CMD.EXE /C "' | sCommand | '" 1> ' | cCmdOutputFile | ' 2>&1';Expected line
sCommand = 'CMD.EXE /C "' | sCommand | ' > "' | cCmdOutputFile | '" 2>&1"';Description of changes
1>- it doesn't make sense in CMDThe whole statementafter CMD.EXE /C should be included in double quotes, not the onlysCommandcCmdOutputFilemay contain spaces, so it also needs to be enclosed in double quotes