...
The following script segment prints the file name and absolute path of each file in the directory:
Panel | ||
---|---|---|
|
Executing this would build a file list containing the files: file1.txt, file2.txt, and file3.txt. Since there are three files in the list that was built, UDM would iterate through the loop three times:
...
This script segment would result in the following output:
Panel | ||
---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
For efficiency reasons, all of these attributes - other than name and type - are retrieved only as requested. You can request to retrieve the file attributes by adding fileattrib=yes to the end of the forfiles call.
For example:
Panel | ||
---|---|---|
|
If the information for an attribute cannot be obtained, its value is set to an empty string.
...