Code: Select all
v9.90.0204 - 2011-02-03 10:52
+ Scripting got a new function.
Name: folderreport
Action: Creates a report on a folder.
Syntax: folderreport([type=dump], [target=clipboard], [folder], _
[flags], [outputfile])
type: Type of report, one of the following:
dump: [Default] Classic directory dump.
bcsv: Basic info to CSV.
ecsv: Extended info to CSV.
tree: Tree structure only.
list: The current list contents.
target: Target of report, one of the following:
c, clipboard: Copy to clipboard.
f, file: Write to file.
p, printer: Print.
r, return: Return data to running script.
folder: Folder to report on;
defaults to the current folder.
flags:
a: Append to output file.
Only for target "file"
r: Recurse subfolders.
Not for type "list".
v: Include version information.
Only for types "dump" and "bcsv".
outputfile: Output file.
Only for target "file".
return: The report data (if target is "return").
Remarks:
- The function provides scripting access to the commands
available on the Report tab in the Info Panel.
- The behavior is not fully controlled by scripting, but also by
settings in Configuration | Report, and in Info Panel | Report.
However, the properties that *are* controllable by scripting
overwrite the interface settings. E.g. the state of the
"Include subfolders" checkbox has no impact on the behavior of
folderreport; this property is only controlled by the "flags"
parameter.
Examples:
::folderreport("dump", "clipboard", "E:\Test\", "r")
::folderreport("dump", "file")
::folderreport("dump", "file", <xypath>, "a", "C:\temp\test.txt")
::folderreport("bcsv", "c", "C:\Program Files\XYplorer\", "v")
::text folderreport("dump", "r", "C:\Programme\XYplorer\", "v")
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned.
It's a good idea to backup your complete XYplorer settings (menu File | Settings | Backup your Application Data Folder)
before running a new BETA version. This will also help in fixing any fresh bugs.