Skip to content

Exporting and importing metadata

Dijji edited this page Nov 3, 2017 · 6 revisions

Command line support for exporting, importing or deleting File Meta metadata properties is provided by FileMeta.exe (installed in the program files folder 'File Metadata').

Here are some examples of how to use it:

FileMeta.exe -e -x=props.xml myfile.txt
FileMeta.exe -i -x=props.xml mynewfile.txt

will export the properties from myfile.txt to an XML file called props.xml, then import them again to a file called mynewfile.txt

FileMeta.exe -e -f=xml *.txt

will export metadata for all text files in the current working directory to a subfolder called xml (this folder must already exist).

FileMeta.exe -d myfile.txt 

will remove all metadata from myfile.txt

FileMeta.exe -ec myfile.txt 

will display all metadata properties of myfile.txt on the console

A good place to look for examples of its use in batch files is the test script, which you can find in the sources at CommandLine\CommandLineTest\runtests.cmd

Here is the full set of options:

FileMeta {-d|-i|-e} [-c](-c) [-f=](-f=directory-name) [-x=](-x=file-name) [-p](-p) [--](--) [--version](--version) [-h](-h) ...

Where:

-d, --delete (OR required) Remove all metadata from file -- OR -- -i, --import (OR required) Import metadata from XML -- OR -- -e, --export (OR required) Export metadata to XML

-c, --console Output XML to console instead of file (only valid for --export)

-f=, --folder= Directory for XML files (default is same directory as target file)

-x=, --xml= Name of XML file (only valid if one target file)

-p, --prompt After execution, prompt to continue

--, --ignore_rest Ignores the rest of the labelled arguments following this flag.

--version Displays version information and exits.

-h, --help Displays usage information and exits.

(accepted multiple times) (required) Names of target files. The usual wildcards (*, ?) are supported

Clone this wiki locally