Files
shell-scripts/常用脚本/AI项目/启动全流程.ps1
2024-11-27 10:33:20 +08:00

26 lines
651 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#Write-Host "开始关闭 Clash"
#
## 关闭应用程序 clash
#Stop-Process -Name "Clash For Windows" -Force
#
#
#Write-Host "开始 启动 Clash"
#Start-Sleep -Seconds 2
#
## 启动应用程序 "C:\SSS\ClashForWindows\Clash for Windows"
#Start-Process -FilePath "C:\SSS\ClashForWindows\Clash for Windows\Clash for Windows.exe"
#
#Start-Sleep -Seconds 2
Write-Host "开始 修改 Clash 的配置 "
$uri = 'http://127.0.0.1:61889/proxies/:tc-bjc'
$headers = @{
'Authorization' = 'Bearer 5c090877-21bb-4006-a97c-0bd4bfbb9be9'
}
$result = Invoke-RestMethod -Uri $uri -Method Put -Headers $headers
# 可以根据需要处理$result的响应