foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:26:06Z
This commit is contained in:
@ -11,9 +11,8 @@ $scriptName = (Get-Item $scriptPath).Name
|
|||||||
# --- Task Setup ---
|
# --- Task Setup ---
|
||||||
$taskName = 'FoamGitSync'
|
$taskName = 'FoamGitSync'
|
||||||
$taskDescription = "Periodically synchronizes the Git repository at $scriptDir using $scriptName."
|
$taskDescription = "Periodically synchronizes the Git repository at $scriptDir using $scriptName."
|
||||||
$fullCommand = "c:\windows\system32\conhost.exe --headless powershell.exe -WindowStyle Hidden -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $scriptPath"
|
$taskExecute = 'c:\windows\system32\conhost.exe'
|
||||||
$taskExecute = $fullCommand.Split(" ")[0]
|
$taskArguments = "--headless powershell.exe -WindowStyle Hidden -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $scriptPath"
|
||||||
$taskArguments = $fullCommand.Split(" ").Skip(1).Join(" ")
|
|
||||||
$frequencyMinutes = 2
|
$frequencyMinutes = 2
|
||||||
$timeLimitSeconds = 30
|
$timeLimitSeconds = 30
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user