mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-24 19:51:28 +02:00
Update _index.en.md
This commit is contained in:
parent
db9d415a99
commit
f5df719a3e
@ -64,6 +64,16 @@ cd $env:ProgramFiles\RustDesk\
|
|||||||
```
|
```
|
||||||
$ErrorActionPreference= 'silentlycontinue'
|
$ErrorActionPreference= 'silentlycontinue'
|
||||||
|
|
||||||
|
$confirmation_file = "C:\program files\RustDesk\runonce.txt"
|
||||||
|
|
||||||
|
if ([System.IO.File]::Exists($confirmation_file)) {
|
||||||
|
echo "Confirmation file exists"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$ErrorActionPreference= 'silentlycontinue'
|
||||||
|
|
||||||
net stop rustdesk > null
|
net stop rustdesk > null
|
||||||
$ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue
|
$ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue
|
||||||
if($ProcessActive -ne $null)
|
if($ProcessActive -ne $null)
|
||||||
@ -76,6 +86,10 @@ Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw
|
|||||||
Write-Output $rustdesk_pw
|
Write-Output $rustdesk_pw
|
||||||
|
|
||||||
net start rustdesk > null
|
net start rustdesk > null
|
||||||
|
|
||||||
|
New-Item $confirmation_file > null
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
## RustDesk URL Action
|
## RustDesk URL Action
|
||||||
|
Loading…
x
Reference in New Issue
Block a user