贪玩群演 (@osozos) 在 静默重置 Windows 上 typora 试用期 中发帖
reset.ps1
#Requires -Version 5.0
$today = Get-Date
$regPath = \”HKCU:\\SOFTWARE\\Typora\”
$appData = [Environment]::GetFolderPath(\”ApplicationData\”)
$typoraPath = Join-Path -Path $appData -ChildPath \”Typora\”
$regExists = Test-Path $regPath
$dirExists = Test-Path $typoraPath
$earliestCreationTime = $null
if (-not $regExists -and -not $dirExists) {
Write-Host \”⏭️ (跳过:未找到 Typora 试用数据)\” -Foregroun…
详情链接:
https://linux.do/t/topic/1344528/1
来源: LINUX DO, 消息ID: 263738
爱站程序员基地

