Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now 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.

In MS Word, how do I copy the list of files in a folder to a new document?

I want to rearrange the allocation of files in a set of folders (specifically, these are files related to chapers in a book that I am writing, and I am rearranging the range of the chapters). So it would be helpful to copy the list of files that appears (not the files themselves!) when I open the existing folders

1 Answer

Relevance
  • Me2
    Lv 7
    2 years ago

    It can't be done from Microsoft Word alone.  While pressing a Shift key, right-click the folder containing the files you wish to list, and click "Open command window here."

    At the prompt, type this command and press Enter.

      DIR /B /A-D > %TEMP%\filelist.tmp

    Close the command prompt.

    In Word, click Insert and File, then type %temp%\filelist.tmp and click Insert.

Still have questions? Get answers by asking now.