# Exporting/Importing Settings

You can export information such as the settings in the [Preferences] dialog box, Desk and Viewer toolbar settings, and a link folder's link destination, to a file or Working Folder.
The DocuWorks environment can be configured by importing the exported data.
Note
Exporting from and importing to Working Folder can be done when the link with Working Folder has been established in [Cloud Service Linkage Settings].
However, if the user who is actually logged in Working Folder does not match the user set in [Cloud Service Linkage Settings], importing and exporting cannot be done.
This section describes the following.

- Exporting to Working Folder
- Importing from Working Folder
- Running an Import with a Command (dwcustomize.exe)
- Running an Export with a Command (dwcustomize.exe)

## Exporting Settings

### Exporting to a file

Procedure
1.
On Desk or Viewer, open the [File] menu, then select [Share Settings] - [Export DocuWorks Settings].
The [Export DocuWorks Settings] dialog box appears.
2.
Select the check box of the target to be exported.
3.
Click [Export].
The [Save As] dialog box appears.
4.
Specify the file name and the folder to save the file, then click [Save].
The settings are applied to a file with the extension ".xcm".

### Exporting to Working Folder

Procedure
1.
On Desk, open the [File] menu, and select [Share Settings] - [Export (to)].

## Importing Settings

### Importing from a file

- Procedure

1.
On Desk or Viewer, open the [File] menu, then select [Share Settings] - [Import DocuWorks Settings].
The [Open] dialog box appears.
2.
Select the file with extension "xcm", to which you exported DocuWorks settings, then click [Open].
You will receive a message telling you that you need to exit Desk, Viewer, Tray, and Viewer Control.
3.
Exit Desk, Viewer, Tray, and Viewer Control.
4.
Click [Retry] in the message.
The [Import DocuWorks Settings] dialog box appears.
5.
Select the check box of the target to be imported.
6.
Click [Import].
A message appears to ask if you want to import settings.
7.
Click [OK].
When you perform import, the current preferences are overwritten. The imported toolbars and link folders are newly added. These toolbars and link folders are not overwritten but newly added even if toolbars and/or link folders with the same name already exist.

### Importing from Working Folder

- Procedure

1.
On Desk, open the [File] menu, and select [Share Settings] - [Import (from)].
The [Select Import Source] dialog box appears.
2.
Select the setting you want to import, and click [OK].
You will receive a message telling you that you need to exit Desk.
3.
Exit Desk.
4.
Click [Retry] in the message.
The [Import DocuWorks Settings] dialog box appears.
5.
Select the check box for the target to be imported.
6.
Click [Import].
A message appears to ask if you want to import the settings.
7.
Click [OK].
When you perform import, the current preferences are overwritten. The toolbars and link folders are newly added. The import operation does not overwrite toolbars and link folders but newly adds them, if a toolbar and/or link folder with the same name already exists.

## Running an Import with a Command (dwcustomize.exe)

The command dwcustomize.exe can be used to run an import from the command prompt or batch file.

### Syntax

dwcustomize.exe [/imp] [/fpn"setting data file path"] [/sel"import target"] [/del"file to delete the original setting information"] [/bak"output path of backup file for original setting information"] [/s]

- Use lower case characters for the command, options, and text strings.
- Change the path of "dwcustomize.exe" according to your environment.
- The string specified for each option must be enclosed in double quotation marks ( " ). Do not insert space characters between options and option strings.

### Description of options

Option | Description
--- | ---
/imp | Cannot be omitted.
/fpn"setting data file path" | This option is necessary when using the "/s" option. Specify the setting data file to be imported with a full path. The path cannot exceed 255 characters.
/sel"import target" | Specify the target to be imported. 1) all: Imports all data that can be imported in the setting data file specified in the "/fpn" option. 2) Personal Settings: You can individually select targets to be imported from the following data. To specify OR, insert symbol "|" between items. ds: [Preferences] dialog box (Desk) vs: [Preferences] dialog box (Viewer) ts: [Preferences] dialog box (Tray) cs: [Preferences] dialog box (Viewer Control) dtall: all Desk toolbars vtall: all Viewer annotations toolbars dlall: all link folders tfall: all tray files in DocuWorks Tray esall: all extended folders that support import of settings If the "/sel" option is specified, it is ignored when no setting information is included in the setting data file specified in the "/fpn" option.
/del"file to delete the original setting information" | Specify the setting information to be deleted when deleting the current settings before importing settings. 1) all: Deletes all setting information to import settings. 2) Personal Settings: You can individually select targets to be deleted from the following data. To specify OR, insert symbol "|" between items. dtall: all Desk toolbars vtall: all Viewer annotations toolbars dlall: all link folders tfall: all tray files tfexl: all tray files except for tray files which are to be saved locally Setting information from the [Preferences] dialog box of Desk, Viewer, Tray, Viewer Control, and Extended Folder is deleted before import, regardless of whether the "/del" option is specified or not.
/bak"output path of backup file for original setting information" | Makes a backup file for the current setting information before executing import processing. Specify the folder to output the backup file with a full path. The path cannot exceed 255 characters. If this option is omitted, the command is executed by default. Default: "<DWFolder>\dwcustomize\backup"
/s | Specifies the silent mode. If this option is used, settings are imported without displaying the [Import DocuWorks Settings] dialog box or other dialog box. If this option is not used, the [Import DocuWorks Settings] dialog box appears.

## Running an Export with a Command (dwcustomize.exe)

The command dwcustomize.exe can be used to run an export from the command prompt or batch file.

### Syntax

The dwcustomize.exe command is executed in the following format:
dwcustomize.exe /exp [/fp "export folder path"] [/fn "export file name"] [/sel "export target"] [/s]

- Use lower case characters for the command, options, and text strings.
- Change the path of "dwcustomize.exe" according to your environment.
- The string specified for each option must be enclosed in double quotation marks ( " ). Do not insert space characters between options and option strings.

### Description of options

Option | Description
--- | ---
/exp | Can be omitted.
/fp "export folder path" | Specify the setting data file to be exported with a full path. Default value will be used if omitted. Default value:” <DWFolder>¥dwcustomize”
/fn "export file name" | Specify the setting data file to be exported with a full path. Default value will be used if omitted. Default vaule: ”<1.4.3.2.3.filename of filename>”
/sel "export target" | Specify the target to be exported 1) all: Exports all data that can be exported in the setting data file specified in the "/fp” and "/fn" option. 2) Personal Settings You can individually select targets to be deleted from the following data. To specify OR, insert symbol "|" between items. ds: [Preferences] dialog box (Desk) vs: [Preferences] dialog box (Viewer) ts: [Preferences] dialog box (Tray) cs: [Preferences] dialog box (Viewer Control) dtall: all Desk toolbars vtall: all Viewer annotations toolbars dlall: all link folders tfall: all tray files in DocuWorks Tray esall: all extended folders that support import of settings If the "/sel" option is specified, it is ignored when no setting information is included in the setting data file specified in the "/fpn" option.
/s | Specifies the silent mode. If this option is used, settings are exported without displaying the [Export DocuWorks Settings] dialog box or other dialog box. If this option is not used, the [Export DocuWorks Settings] dialog box appears.