tlaOpenTree
Open All Files in Directory Tree with Matching Filename

Visual SlickEdit® - Slick-C Macro - Royalty Free - 2005.01.01 17:15
Send Comments

Purpose

Open All Files in Directory Tree with Matching Filename.

Open all files in directory tree with matching filename.

This function adds a new capability to Visual SlickEdit.

Operation

There are two methods for using this function: "assign to a button or menu item" and "prompt for input".

Assign to Button or Menu Item (prompt for input) ...

  • Position Visual SlickEdit to the directory to be the root of the open operations.
  • Issue the tlaOpenTree command with no filename specified.
  • When prompted, enter the filename (with wildcards).

Function call approach (no prompt for input) ...

  • Position Visual SlickEdit to the directory to be the root of the open operations.
  • Issue tlaOpenTree specifying the filename (with wildcards) for the comparison.

Example

Prompt - prompt for filename to use for comparison ...

tlaOpenTree( )

No Prompt - open all C# files in the directory tree ...

tlaOpenTree( *.cs )

Input Parameters

Optional file specification (wildcards permitted).

Return Codes

Code Message
-1 tlaOpenTree: Terminated by request.
number tlaOpenTree: number files found in tree but not loaded for 'filename'.
0 tlaOpenTree: No matching files found in tree for for 'filename'.
number tlaOpenTree: number files loaded from tree for 'filename'.

Reference

This function calls tlaError.

Compatibility

Current version verified under:

  • Visual SlickEdit 8.0.1

Installation

Perform the following steps:

  • Select the Code button on this page.
  • When the second window opens, select all the text in the text box.
  • Issue Ctl-C (copy).
  • Create a file in Visual SlickEdit with type Slick-C and extension ".e".
  • Issue Ctl-V (paste).
  • Issue Ctl-S (save).
  • Select PFK-12 to compile the macros.

Purchase

tlaSlick is a Visual Slick-C module that contains all of the Slick-C macros on this website in a single easy to install package. The tlaSlick module can be purchased by selecting the Buy button on this page.

tlaOpenTree is included as a function in tlaSlick.

Copyright © 1993-2005 Thom Little Associates, Ltd. revised 2005.01.01 17:15
One Central Square, Keene, NH 03431-3787 phone 603-357-7567