vat-software/scripts/shared_sw/task_fix.ps1
2023-03-28 11:59:09 +02:00

8 lines
263 B
PowerShell

Unregister-ScheduledTask -TaskName "git pull" -Confirm:$False
$path = [Environment]::GetFolderPath("MyDocuments")
$path2 = "VAT-Software"
$fullPath = Join-Path $path $path2
schtasks /create /sc minute /mo 5 /tn "Git pull" /tr "PowerShell $fullPath'\cron.ps1'"