Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
For Windows, is there an easier way to copy-paste ALL the file names inside a folder to a text/excel document?
I have a folder with a bunch of files. For example, folder C:\Users\AAAA\Desktop\stuff has 150 ridiculous file names like "vous etes tres gentil.xls," "je ne sais quoi.ppt," and "iwe478r5yGHFAS.png."
I am trying to gather all the file names in a text document and I have been doing it the hard way by typing out the easy and memorable file names one by one and copying and pasting the longer/forgettable file names one by one to the text document. I eventually need to import the text document to excel.
Is there a better way to do this? There should be a program or a setting that allows you to copy and paste all the file names inside a folder in one non-heineous, non-redundant manner.
I know in linux, all you need to do is type in "./" or something and it automatically lists all the file names within a folder from the command prompt. Is there a similar function in Windows/Microsoft Office (more specifically in Excel)?
5 Answers
- 8 years agoFavorite Answer
this is not the exact way... but u can try this...
Open MS-dos..
type the command "dir <destination folder>"
it will list the files in that folder.
mark the file names and press ctrl+c and paste it in your word document...
you're done....
- 5 years ago
Open a command prompt, go to the vital folder and form: dir /b > folder.Txt in an effort to create a textual content file known as folder.Txt containing the entire filenames. That you could open that in Notepad or whatever and replica all the file names from there.
- 8 years ago
CTRL + A inside the folder. Open up text editor, or whatever, and drag the files into it. You should get all the "folder" names.
You could also look into MS-DOS, it has some useful commands for this type of automation.
- FrecklefootLv 58 years ago
1. In Windows Explorer, select all the files you want to copy the names of.
2. Shift + right-click on the selected files
3. In the pop-up menu, select "Copy as path"
4. Paste into your favorite text editor (Notepad, Notepad++, Word)
Note, this will give all the file names AND their entire paths. To easily strip off the path, most quality text editors (e.g. Notepad++) will let you select a rectangular block of text (instead of lines) & delete it. This is probably the easiest way to strip off the paths. In Notepad++, to select a rectangular block of text, hold down Alt and select the block with the mouse as normal. Your block will highlight as you drag the mouse.
HTH!
Source(s): Personal experience - How do you think about the answers? You can sign in to vote the answer.
- Anonymous7 years ago
try using long path tool