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.
The format of the command line exporter is
msbatch nwexport_22 [-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.
In the Control Panel, double-click System.
In the System Properties dialog box, Advanced tab, click the Environment Variables button.
In the Environment Variables dialog box, double-click Path under System Variables.
In the Edit System Variable dialog box, add the path to the MicroStation application to the Variable Value field.
Click OK to save the changes and close the dialog boxes.