Export Files from the Command Line

You can also export files from the command line by using the msbatch.bat file. This is useful when you want to set up an automated script for file export.

Note: To export a file from the command line, you must first add the MicroStation program directory to the Path environment variable.

The format of the command line exporter is

msbatch nwexport12 [-f] FILE [OUTPUT]

FILE is the name of the MicroStation file you want to export. This is the only required option. The OUTPUT argument enables you to specify the name of the output file.

By default, the exporter only converts files that have been changed since the last time you exported them. This is useful for speeding up exporting a large number of files. If you want to force the exporter to convert all files, use the -f option.