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

pull/45/head
bin456789 3 years ago
parent ea89d61b86
commit 2993f1c2cb
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

@ -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

Loading…
Cancel
Save