Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win版 --work-dir 参数是否不支持带环境变量的路径 #390

Closed
DCxDESIGN opened this issue Jul 16, 2022 · 1 comment
Closed

Win版 --work-dir 参数是否不支持带环境变量的路径 #390

DCxDESIGN opened this issue Jul 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@DCxDESIGN
Copy link

DCxDESIGN commented Jul 16, 2022

1. 你使用的BBDown版本是什么?(指明是Release版本还是Actions版本)

220714 Actions

2. 你在什么系统使用本软件?(Win/Linux/Mac)

Win

3. 你使用的完整命令是什么?

bbdown BV1fB4y1h76Z --work-dir %HOMEDRIVE%%HOMEPATH%\desktop
或者
bbdown BV1fB4y1h76Z --work-dir "%HOMEDRIVE%%HOMEPATH%\desktop"

4. 遇到了什么问题?

我一般在 PowerShell 下运行 BBDown,并且工作路径默认是在桌面,在我运行上述命令,或者不带参数改为在 BBDown.config 里配置成

--work-dir
%HOMEDRIVE%%HOMEPATH%\desktop

或者

--work-dir
"%HOMEDRIVE%%HOMEPATH%\desktop"

的时候,它并不会按照预期直接在桌面放置下载文件,而是在我的默认工作路径下再新建名为 %HOMEDRIVE%%HOMEPATH% 的文件夹,里面再新建 desktop 文件夹,再放置下载文件,如下图所示:
SShot-20220717-003015-explorer

想了解一下 BBDown 目前参数是不是不支持 Win 下 %% 这样的环境变量作为路径,如果确实不支持的话,以后有支持的可能吗?

非常感谢

@nilaoda nilaoda added the enhancement New feature or request label Jul 16, 2022
@nilaoda
Copy link
Owner

nilaoda commented Jul 16, 2022

暂不支持

nilaoda added a commit that referenced this issue May 26, 2023
@nilaoda nilaoda closed this as completed May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants