From 1db52f46fa906a3389cbdc5ff14e9579da926d6c Mon Sep 17 00:00:00 2001 From: bitcookies Date: Sun, 9 Nov 2025 12:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=98=20Add=20./=20to=20the=20shell=20ex?= =?UTF-8?q?ample?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- README.zh-CN.md | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 0463b56..33f96bb 100644 --- a/README.md +++ b/README.md @@ -281,13 +281,13 @@ For example, generating a license with UTF8NoBOM encoding. > `utf8:` is to ensure constant character representation in WinRAR across languages. ```shell -winrar-keygen.exe "utf8:简体中文" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:简体中文" "license" | Out-File -Encoding UTF8NoBOM rarreg.key -winrar-keygen.exe "utf8:Français" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:Français" "license" | Out-File -Encoding UTF8NoBOM rarreg.key -winrar-keygen.exe "utf8:日本語" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:日本語" "license" | Out-File -Encoding UTF8NoBOM rarreg.key -winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding UTF8NoBOM rarreg.key ``` @@ -301,7 +301,7 @@ Why is my `rarreg.key` invalid? `TEXT1` and `TEXT2` are required to fulfill [corresponding coding requirements](#31-Encoding). ```console -winrar-keygen.exe +./winrar-keygen.exe ``` You can refer to: [Generation of "rarreg.key"](https://github.com/bitcookies/winrar-keygen/blob/master/README.HOW_DOES_IT_WORK.md#7-generation-of-rarregkey) @@ -311,7 +311,7 @@ You can refer to: [Generation of "rarreg.key"](https://github.com/bitcookies/win If you use the following command: ```shell -winrar-keygen.exe "Github" "Single PC usage license" > rarreg.key +./winrar-keygen.exe "Github" "Single PC usage license" > rarreg.key ``` In the newer Windows 10 / 11, PowerShell will export in **UTF16-LE** format by default, which will cause the error. @@ -319,11 +319,11 @@ In the newer Windows 10 / 11, PowerShell will export in **UTF16-LE** format by d Please use the following command: ```shell -winrar-keygen.exe "Github" "license" | Out-File -Encoding ascii rarreg.key +./winrar-keygen.exe "Github" "license" | Out-File -Encoding ascii rarreg.key -winrar-keygen.exe "Github" "license" | Out-File -Encoding ansi rarreg.key +./winrar-keygen.exe "Github" "license" | Out-File -Encoding ansi rarreg.key -winrar-keygen.exe "utf8:Github" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:Github" "license" | Out-File -Encoding UTF8NoBOM rarreg.key ``` ## 8. Contributing diff --git a/README.zh-CN.md b/README.zh-CN.md index 732a9c8..59718d0 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -276,13 +276,13 @@ dd4ab952600ba16a99236d910bfa995d5f60651ec451f462511507 > `utf8:` 是为了保证在不同语言的 WinRAR 中做到不变的字符表示。 ```shell -winrar-keygen.exe "utf8:简体中文" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:简体中文" "license" | Out-File -Encoding UTF8NoBOM rarreg.key -winrar-keygen.exe "utf8:Français" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:Français" "license" | Out-File -Encoding UTF8NoBOM rarreg.key -winrar-keygen.exe "utf8:日本語" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:日本語" "license" | Out-File -Encoding UTF8NoBOM rarreg.key -winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding UTF8NoBOM rarreg.key ``` @@ -296,7 +296,7 @@ winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding UTF8NoBOM rarr 参数 `TEXT1` 和 `TEXT2` 需要满足[对应的编码要求](#31-编码说明): ```console -winrar-keygen.exe +./winrar-keygen.exe ``` 具体可参考原理文档:[授权文件"rarreg.key"的生成](https://github.com/bitcookies/winrar-keygen/blob/master/README.HOW_DOES_IT_WORK.zh-CN.md#7-%E6%8E%88%E6%9D%83%E6%96%87%E4%BB%B6rarregkey%E7%9A%84%E7%94%9F%E6%88%90) @@ -306,7 +306,7 @@ winrar-keygen.exe 如果你使用了如下命令: ```shell -winrar-keygen.exe "Github" "Single PC usage license" > rarreg.key +./winrar-keygen.exe "Github" "Single PC usage license" > rarreg.key ``` 在较新的 Windows 10 / 11 系统中,PowerShell 将默认以 **UTF16-LE** 格式导出,这将会导致错误。 @@ -314,11 +314,11 @@ winrar-keygen.exe "Github" "Single PC usage license" > rarreg.key 请指定输出编码格式,例如: ```shell -winrar-keygen.exe "Github" "license" | Out-File -Encoding ascii rarreg.key +./winrar-keygen.exe "Github" "license" | Out-File -Encoding ascii rarreg.key -winrar-keygen.exe "Github" "license" | Out-File -Encoding ansi rarreg.key +./winrar-keygen.exe "Github" "license" | Out-File -Encoding ansi rarreg.key -winrar-keygen.exe "utf8:Github" "license" | Out-File -Encoding UTF8NoBOM rarreg.key +./winrar-keygen.exe "utf8:Github" "license" | Out-File -Encoding UTF8NoBOM rarreg.key ``` ### 7.3 关于简体中文版