Article ID: 26281 - View products that this article applies to.
This article was previously published under Q26281
This article has been archived. It is offered "as is" and will no longer be updated.
In Microsoft MS-DOS versions 3.2 and later, redirection has higher priority than the REM command. For example, the following batch file causes the file test to contain either "BBBBB" or zero bytes after the REM statement, depending on which version of MS-DOS your are using. In other words, the redirection symbol is not disabled by the REM statement.
Even if you comment out the redirection with a REM statement, it still occurs, nullifying the file (because the REM command ensures that nothing would be redirected into the file).
Article ID: 26281 - Last Review: August 23, 2013 - Revision: 2.0