Posts filed under: DOS

Output DOS command results to a text file

Output a directory list to a text file
dir > test.txt

Output a directory list and subdirectories to a text file
dir > /s test.txt

Append to an existing file
dir >> test.txt…

Output a DOS command to a text file

Using the greater than sign DOS will write the output of your command to a text file.

To output a basic command to a text file

c:\> dir > filename.txt

OUTPUT the users in a group to a text file …