New
#1
Extract names of items of some folder
Hi friends.
Could you introduce me a software that can extract the names of items of a folder and save it somewhere for example in a txt or doc or another type of file?
Cheers
Hi friends.
Could you introduce me a software that can extract the names of items of a folder and save it somewhere for example in a txt or doc or another type of file?
Cheers
You can do this with the dos command 'dir' and pipe ( > ) it to a txt document in the same folder.
Such as to get content listing of your musics folder, open the folder in command prompt (rclick, open command prompt here), then type:
dir > list.txt
You can also filter it for specific extensions:
dir *.mp3 > list.txt
and troll through subfolders with the /s switch
dir /s *.mp3 > list.txt
type dir /? for more info on that command if you are unfamiliar with it.
DOS??
My DOS skills have atrophied.
What was it?
dir>prn
Something like that.
Or maybe:
Go to folder and open a DOS prompt. Type "dir /b > dir.txt" (without the quotes) and hit enter. This will put a list of the contents of the folder in a file called dir.txt, which you can print by loading it into Notepad, Word, Excel etc.
Or maybe:
Karen's Directory Printer
A couple more command examples.
Make a list of all files in your Documents folder, sorting it alphabetically, leaving away dates and file sizes, not listing any folders. Save results to file Document.txt in your user folder:
Make a list of all files in your Videos folder and its subfolders, sorting it alphabetically with date and time when each file was last time accessed. Save results to file Videos.txt in your user folder:Code:dir C:\Users\YourUserName\Documents\ >C:\Users\YourUserName\Documents.txt /b /on /a-d
KariCode:dir C:\Users\YourUserName\Videos\ >C:\Users\YourUserName\Videos.txt /s /oe /ta
I appreciate you,friends.
thank you