Skip to content

Instantly share code, notes, and snippets.

# Create a temporary directory if it doesn't exist
$tempDirectory = "C:\Temp"
if (-not (Test-Path $tempDirectory -PathType Container)) {
New-Item -ItemType Directory -Path $tempDirectory -Force
}
# Step 0: Backup Arc:
Write-Host "Backing up arc..."
& "C:\Program Files\7-Zip\7z.exe" a -t7z "c:\Temp\arcBackup.7z" "c:\arcBrowser\*" -mx=4