Added support for ERRORLEVEL. Most errors reported via FormatMessage(). COPY command now works correctly if output specifier is a directory.