mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: 解决 Windows 下有时临时文件夹消失
This commit is contained in:
parent
ea89d61b86
commit
2993f1c2cb
@ -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…
x
Reference in New Issue
Block a user