
/2017-06-163-59444d855f9b58d58a43b200.png)
Read the Microsoft documentation about Using command redirection operators for an explanation of 2>nul. This error message is redirected with 2>nul to the device NUL to suppress it. It is possible that DIR does not find any file system entry matched by the criteria which results in an error message output to handle STDOUT. There is output to handle STDOUT of background command process just the list of found file names in bare format because of option /B with full path because of option /S. of which long or short 8.3 name is matched by the wildcard pattern *.txt.for just files because of option /A-D (all attributes except directory attribute) including also hidden files.


That results in searching recursive because of option /R in current directory and all its subdirectories for non-hidden files of which long or short 8.3 file name is matched by the wildcard pattern *.txt. There can be used in a Windows command prompt window: for /R %I in (*.txt) do %~nxI
