1. 下载zip文件
选择电脑对应的版本
Windows (64-bit): Latest build
2. 解压压缩包至如图所示(随意)

3. 把bin目录添加到环境变量中

3.1 打开配置环境变量界面

3.2 双击path

3.3 点击新建,输入刚才解压后的openCC的bin地址

3.4 无脑确定即可。
4.进入cmd界面使用opencc
C:\Users\lenovo>D:
D:\>cd OpenCC\build\bin
D:\OpenCC\build\bin>opencc --help
此时会跳出说明文档:
Open Chinese Convert (OpenCC) Command Line Tool
Author: Carbo Kuo <byvoid@byvoid.com>
Bug Report: http://github.com/BYVoid/OpenCC/issues
Usage:
opencc [--noflush <bool>] [-i <file>] [-o <file>] [-c <file>] [--]
[--version] [-h]
Options:
--noflush <bool>
Disable flush for every line
-i <file>, --input <file>
Read original text from <file>.
-o <file>, --output <file>
Write converted text to <file>.
-c <file>, --config <file>
Configuration file
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
Open Chinese Convert (OpenCC) Command Line Tool
以后就可以这样使用opencc命令转化繁体了~
例如:opencc -i 需要转换的文件路径 -o 转换后的文件路径 -c 配置文件路径