# Folder to put setup files

- installer edition

  - setup files
    - `%APPDATA%\teraterm5`
  - log files, dump files
    - `%LOCALAPPDATA%\teraterm5`

- portable edition

  - setup files
    - a folder which is exist exe file
  - log files, dump files
    - a folder which is exist exe file + `\log`

# about portable edition

- Program is not affected environment (system or personal setting)
  - Assumed usage
    - Copy program to USB stick, and run from it
    - Run without install (only copy program)
- Put portable.ini file in a folder which is ttermpro.exe is exist, then program is start as portable edition.
- Content of portable.ini file does not matter. (zero size file is accepted)

# folders and files which is used by insaller edition

## Example for Windows Vista or later

- setup files
  - `C:\Users\[username]\AppData\Roaming\teraterm5`
- log files, dump files
  - `C:\Users\[username]\AppData\Local\teraterm5`

## Example for Windows 2000, XP

- setup files
  - `C:\Documents and Settings\[username]\AppData\Roaming\teraterm5`
- log files, dump files (undefined)
  - `C:\Documents and Settings\[username]\Application Data\teraterm5`

Reference

- https://torutk.hatenablog.jp/entry/20110604/p1

## If a file name is specified

If full path of a file is specified by command line option, it is used preferentially.

- TERATERM.INI
- KEYBOARD.CNF
- broadcast.log

## When setup files is not exist

ttermpro.exe behaves followings:

- create a folder to put setup files
- copy a setup file which is exist in ttermpro.exe folder to "setup file folder"