diff --git a/cron.ps1 b/cron.ps1 index 5cf9837..60b47dc 100644 --- a/cron.ps1 +++ b/cron.ps1 @@ -1,4 +1,4 @@ Set-Location ([Environment]::GetFolderPath("MyDocuments")) - +cd "VAT-Software" git fetch --all git reset --hard origin/master diff --git a/scripts/test.ps1 b/scripts/test.ps1 new file mode 100644 index 0000000..1b2a57c --- /dev/null +++ b/scripts/test.ps1 @@ -0,0 +1,6 @@ +$path = [Environment]::GetFolderPath("MyDocuments") +$path2 = "VAT-Software" + +$fullPath = Join-Path $path $path2 + +schtasks /create /sc minute /mo 15 /tn "Git pull" /tr "PowerShell $fullPath'\cron.ps1'" \ No newline at end of file