I found a batch file online that is programmed to delete files in a folder older than 3 days. The problem I am having is there is a line I am not 100% about.
dir /b /a-d 2^>NUL
I do understand that this commnand will output the contents of a folder with only file name and no header or footer. What I do not understand is the last part of the command 2^>NUL. When I run the command without the last part it displays the files in a folder. When I run the command with the last part I recieve an error 'File not Found'.
Any help would be great.
Thanks,
cdulong
dir /b /a-d 2^>NUL
I do understand that this commnand will output the contents of a folder with only file name and no header or footer. What I do not understand is the last part of the command 2^>NUL. When I run the command without the last part it displays the files in a folder. When I run the command with the last part I recieve an error 'File not Found'.
Any help would be great.
Thanks,
cdulong