core: 解决 Windows 下有时临时文件夹消失

This commit is contained in:
bin456789 2023-11-07 22:35:46 +08:00
parent ea89d61b86
commit 2993f1c2cb
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -16,6 +16,12 @@ if not !errorlevel! == 0 (
exit /b
)
:: 有时 %tmp% 带会话 id且文件夹不存在
:: https://learn.microsoft.com/troubleshoot/windows-server/shell-experience/temp-folder-with-logon-session-id-deleted
if not exist %tmp% (
md %tmp%
)
:: 检查是否国内
if not exist %tmp%\geoip (
call :download https://www.cloudflare.com/cdn-cgi/trace %tmp%\geoip