remove ps1 from copy

This commit is contained in:
2025-08-20 18:32:40 -06:00
parent 0f7cb287d9
commit 053d3fc4cf
2 changed files with 201 additions and 11 deletions

View File

@@ -1,21 +1,16 @@
# Copy the current UpdateSequences.bat to all subfolders that have it
$sourceFile = "R:\Creative\artsy\maya\0 ProjectStructure\UpdateSequences.bat"
$sourcePs1 = "R:\Creative\artsy\maya\0 ProjectStructure\UpdateSequences.ps1"
if (-not (Test-Path $sourceFile)) {
Write-Error "Source file not found: $sourceFile"
exit 1
}
if (-not (Test-Path $sourcePs1)) {
Write-Error "Source PowerShell file not found: $sourcePs1"
exit 1
}
Write-Host "=== Updating UpdateSequences.bat files ===" -ForegroundColor Cyan
Write-Host "Source .bat: $sourceFile" -ForegroundColor White
Write-Host "Source .ps1: $sourcePs1" -ForegroundColor White
Write-Host ""
# Find all UpdateSequences.bat files
@@ -33,17 +28,12 @@ $failedCount = 0
foreach ($targetFile in $targetFiles) {
$targetDir = $targetFile.Directory.FullName
$targetBat = Join-Path $targetDir "UpdateSequences.bat"
$targetPs1 = Join-Path $targetDir "UpdateSequences.ps1"
try {
# Copy the .bat file
Copy-Item -Path $sourceFile -Destination $targetBat -Force
Write-Host "✓ Updated: $targetBat" -ForegroundColor Green
# Copy the .ps1 file
Copy-Item -Path $sourcePs1 -Destination $targetPs1 -Force
Write-Host "✓ Updated: $targetPs1" -ForegroundColor Green
$updatedCount++
}
catch {