dir command to target folder
Some great code for a Windows batch file was posted here, which will allow you to very easily run the Windows dir command on any folder.
Enter this code in a text file and then save the file with the extension '.bat'.
SET targetPath="%~1"
SET ToolPath=%~dp0
dir %targetPath% /b /s /a-d > "%ToolPath%list.txt"
Then select the folder whose contents you want a list of and drag it from one Windows Explorer window into a different one in which the bat file is saved.
![](https://static.wixstatic.com/media/af7fa4_b0dd3226f32741f89b53dfdcb0f2cf6a~mv2.png/v1/fill/w_49,h_19,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/af7fa4_b0dd3226f32741f89b53dfdcb0f2cf6a~mv2.png)
A new text file will be generated that lists the contents of the folder (and any subfolders). The full path to each file is listed - there is no other content.
![](https://static.wixstatic.com/media/af7fa4_5eb264e441544101a0c12d54492de6c4~mv2.png/v1/fill/w_85,h_47,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/af7fa4_5eb264e441544101a0c12d54492de6c4~mv2.png)