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

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

My Computer My Computer

At a glance

Windows 7 Professional x86AMD 6400 x2 642x OCZ 1GB Platinum, 1x 2GB KingstonATI 3200HD PCI
OS
Windows 7 Professional x86
CPU
AMD 6400 x2 64
Motherboard
Gigabyte M-56s
Memory
2x OCZ 1GB Platinum, 1x 2GB Kingston
Graphics Card(s)
ATI 3200HD PCI
Sound Card
Onboard
Monitor(s) Displays
Dell CRT
Screen Resolution
1280x1024 @85Mhz
Hard Drives
WDC 1TB x2 Sata
Samsung 400GB Sata
WDC 500GB EIDE
PSU
Alntec
Cooling
Came with CPU
Keyboard
Standard wired 101 UK Layout
Mouse
Standard wired Optical Mouse
Internet Speed
Slow :)
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 Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Back
Top