# examples Fileset

Inhalt

Topic:.exmpl_Fileset.

This example tests and shows the capabilities to select files with the zmake preparation inside a JZcmd script.

The `HandleSomeFiles.bat` Windows batch file in this directory contains the invocation of JCcmd and the JZcmd script for this example. The JZcmd script defines some filesets and invokes `testFileAccessExp(...)` as zmake routine to produce some outputs. This subroutine produces only a list of the found files in the given constellations.

The script is commented, so the variants can be seen there.

Sometimes a debug session of the routines may be interest. View Topic:.JZcmd.debug. to see the principle. One can set a breakpoint in the Java routine

- javadocPriv-vishiaBase/org/vishia/util/FileSystem#addFilesWithBasePath(java.io.File, java.lang.String, java.util.List)

- javadocPriv-vishiaBase/org/vishia/util/FilePath#expandFiles(java.util.List, org.vishia.util.FilePath, org.vishia.util.FilePath, org.vishia.util.FilePath.FilePathEnvAccess)