Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How can I create a list of folders in WORD without retyping them all?

06 Dec 2011   #21

Windows 7 Professional x86

pls ignore, i missed the fact there was more than one page to this post

My System SpecsSystem Spec
06 Dec 2011   #22

Windows 10 Pro X64

There is an alternative that I've used back when I used XP, and it still works with Windows 7.

I cheated and used ContextEdit to add a new entry to the Windows Explorer Context (right click) menu. It calls a batch file (.bat) that creates a list of all the files in a folder and write it to a file in the default temp directory, then opens notepad with that file and then deletes the file. Just tested it on my Win 7 Pro X64 system and it works great.

Here is the batch file I use:


dir /a /-p /o:gen %1 >%temp%\GenFileList.txt & notepad %temp%\GenFileList.txt & del %temp%\GenFileList.txt

Above must all be on one line.

If you want just the filename.exe then add the /b switch after the /a, like this:

dir /a /b /-p /o:gen %1 >%temp%\GenFileList.txt & notepad %temp%\GenFileList.txt & del %temp%\GenFileList.txt

Open ContextEdit.
Scroll down to Folder. There may be two of them. If so, select the one that shows Internal name: Folder in the top of the ContextEdit window.
Click the New button.
Call the internal name genfilelist.
You can assign anything you want for the menu name, I used Create File List.
Set the Command line to the path you created GenFileList.bat in, for example:

c:\users\yourname\GenFileList.bat %1

The %1 is critical as that passes the full folder path to the batch file.

Click OK.

Now open Windows Explorer and navigate to the folder you want the file list for. Right click on it and select Create. The list of files will show in a notepad window. There will also be a black Command Prompt window but that will go away when you close the notepad window.
My System SpecsSystem Spec

 How can I create a list of folders in WORD without retyping them all?

Thread Tools

Similar help and support threads
Thread Forum
Word could not create the work file. Check the Temp... Word 2010
I am running Windows 7 Home Premium 64-bit and Office 2010. All of a sudden, when I tried to paste text I copied from an internet page, I got a message "Word could not create the work file. Check the temp environment variable" . It worked fine this morning and is working fine now. I had...
Microsoft Office
MS Word not in default file associations list
I have installed MS Office Professional 2003 on Windows 7. I cannot get Word to associate with .doc files to open files from Windows. Word is not there as an option to choose as a default program in "Open with" or via "Associate a file type...". I can browse to find WINWORD.EXE within...
Microsoft Office
file name list in word open
When I used to enter a file name in windows 2007 open I would get a list of all files by that name and be able to select the one I wanted. Now I no longer get that list. I donít know how to be more specific! If you never saw this you would probably not know that this exists!
Microsoft Office
MS Word 7 not appearing in 'all program list'
Hello Everybody, I mistakenly drag the MS Word file from all program list to desktop and later delete that shortcut permanently.Later, when I try to open MS Word from the folder from MS Office from 'All Program List' of start menu;it was not there at all. Now I don't understand how to...
Microsoft Office
Word 2007 Error Message: "Word could not create the work file."
Hi, I have started getting this as an error message on opening Word 2007. "Word could not create the work file. Check the temp environment variable." Am not able to save any word document. Also, on trying to close Word I get this error message; "Changes have been made that affect the...
Microsoft Office

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 10:57.
Twitter Facebook Google+