Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect
 

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2010 by Barry MacDonnell. All Rights Reserved.

Page updated Sep 2, 2009
File Lister - Lists all specified file types found in a folder (and optionally, all sub-folders) in a new document window

Download FILELISTER.ZIP (v1.0; 06/14/09; 18,935 bytes)

Compatible with WordPerfect 9 and later versions

WordPerfect 11 users: See important information about using macros in the first release of WP11 (11.0.0.233) at the top of this page.

Downloading, Documentation, Modifications, and Support

 

Purpose

This WordPerfect 9 (and later version) macro finds all files of a given type (or all files) found in a specified directory/folder (optionally including subfolders), and then types a list of them into a separate document window.

Usually, these are .WPD files, but you can specify other file types—.DOC, .WCM, .RTF, etc.—from a menu drop list, including <all> file types.

Notes and Limitations

You can modify the default values displayed on the macro's menu. You can change them in the redlined User Modification Area in the macro's code.

The macro will not list files marked with the Hidden/System attributes.

The macro can process up to 10,000 files of all types. To change this number you will need to modify the appropriate macro commands in the processing section of the code.

Tip

You can also print a list of files using File, Open, then -- on the top menu of that dialog -- use File, Print File List. Unlike the File Lister macro above, you cannot choose a particular file type by its filename extension, but this method might be useful to some people. [Note that if the menu in the Open File dialog is not visible, click on the small icon on the extreme ight side of the dialog.]