- Jul
- 178
- 1
If I issue a DEL /S command then I get prompted to confirm the action, something like:
but if I redirect the standard output from the command (say to a file) then:
as you can see, the part of the prompt after the colon still comes out on the console but the rest of it does not and instead appears in the redirected output, making it quite difficult to work out what is going on in certain contexts (in my case, a batch routine that is iterating over subdirectories based on their last update date). Is the split destination of the two elements deliberate?? May I request that it be changed so that both elements are written to the console when standard output is redirected??
Code:
G:\Daily_backups_test>del /s 2012-03-31\
G:\Daily_backups_test\2012-03-31\* : Are you sure (Y/N)?
Code:
G:\Daily_backups_test>del /s 2012-03-31\ >>test_del.log
Are you sure (Y/N)?