seqbatches to home paths too
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copy the current UpdateSequences.bat to all subfolders that have it
|
||||
|
||||
$sourceFile = "A:\1 Amazon_Active_Projects\3 ProjectStructure\UpdateSequences.bat"
|
||||
$sourcePs1 = "A:\1 Amazon_Active_Projects\3 ProjectStructure\UpdateSequences.ps1"
|
||||
$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"
|
||||
@@ -19,7 +19,7 @@ Write-Host "Source .ps1: $sourcePs1" -ForegroundColor White
|
||||
Write-Host ""
|
||||
|
||||
# Find all UpdateSequences.bat files
|
||||
$targetFiles = Get-ChildItem -Path "A:\1 Amazon_Active_Projects" -Recurse -Filter "UpdateSequences.bat" | Where-Object { $_.FullName -ne $sourceFile }
|
||||
$targetFiles = Get-ChildItem -Path "R:\Creative\artsy\maya" -Recurse -Filter "UpdateSequences.bat" | Where-Object { $_.FullName -ne $sourceFile }
|
||||
|
||||
Write-Host "Found $($targetFiles.Count) target files to update:" -ForegroundColor Yellow
|
||||
foreach ($file in $targetFiles) {
|
||||
|
||||
Reference in New Issue
Block a user