Batch Files: List all files in a directory, print as .txt and place output file in all sub directories
问题 1. Searched everywhere, I do find tutorials to print list of files in directory and sub directories using dir command as follows: @echo off dir /S > list.txt pause Above code will return all files in list.txt. We can use switches to get lists in various formats. What I am trying to do is: When I run batch file output file list.txt should be placed in all Sub Directories and not only in the directory from batch file is being executed. 2. I am trying to to rename list.txt as %current directory