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.
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.
My Computer
- Computer type
- Laptop
- Computer Manufacturer/Model Number
- Fujitsu LIFEBOOK
- OS
- Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
- CPU
- Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
- Motherboard
- FUJITSU FJNBB06
- Memory
- 4.00 GB
- Graphics Card(s)
- Intel(R) Graphics Media Accelerator HD
- Sound Card
- [1] Realtek High Definition Audio [2] Intel(R) Display Audio
- Screen Resolution
- 1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
- Hard Drives
- TOSHIBA MK5076GSX
- Antivirus
- AVG FREE