On C:\>Dir /ad /on /s /b >C:\CTree.txt
the file is created BUT a long list of "This directory ... is too long" is output to the screen.
How can I include the screen output in the same file as well
OR
Redirect the screen output to a different file?
Thx
Redirect DIR warnings
Moderator: DosItHelp
Re: Redirect DIR warnings
Assuming it is outputting to Standard Error and not to the console you just add this to the end of your command
Code: Select all
2>&1
Re: Redirect DIR warnings
Yes that put it in the same file.
what about a different file?
what about a different file?