New
#1
Batch file commands for files and folders!
I am putting together a batch file that I can copy into the root of a USB or external HDD.
Within the batch file I have setup a menu with four options. When you press one of these options it generates a .txt file with the relevant information. I have completed the first two of the four options but I am having difficulty with the last two!
I don't really want to include the drive letter if possible.
Options:
1. List Files Only.
2. List Folders Only.
3. List Folders Only Files.
4. List Files, Folders And Folders Files.
Code:
1. dir /b /a-d > 000_Files_List1.txt <= This works as required.
2. dir /b /a:d > 000_Files_List2.txt <= This works as required.
3. ??? > 000_Files_List3.txt
4. ??? > 000_Files_List4.txt
Thanks.