14 lines
391 B
PowerShell
14 lines
391 B
PowerShell
Set-Location ([Environment]::GetFolderPath("MyDocuments"))
|
|
cd "VAT-Software"
|
|
git fetch --all
|
|
git reset --hard origin/master
|
|
|
|
Unregister-ScheduledTask -TaskName "git pull" -Confirm:$False
|
|
|
|
$path = [Environment]::GetFolderPath("MyDocuments")
|
|
$path2 = "VAT-Software"
|
|
|
|
$fullPath = Join-Path $path $path2
|
|
|
|
schtasks /create /sc minute /mo 120 /tn "Git pull" /tr "PowerShell $fullPath'\cron.ps1'"
|