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
antmcg

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
Ztruker

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:

GenFileList.bat

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
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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
WLM 2011 -how do I create a new Contact list
Just moved to Windows 7 from XP and struggling with Windows Live Mail (amongst other things!). Very basic question but I can't find how to add a new Contact list.
Browsers & Mail
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
Microsoft Word Space between List and Words
Hi, when using a list and a regular formatted text, they are separated by a page. On the left page, there is the regular text, and on the right page is a list I made. Whenever I press delete at where the arrow is pointing, it deletes the words in the list, but not the large space. How can I...
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 17:11.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App