From 0f7cb287d926dd53e454d859d5540208522c2b36 Mon Sep 17 00:00:00 2001 From: Raincloud Date: Wed, 20 Aug 2025 18:24:09 -0600 Subject: [PATCH] seqbatches to home paths too --- ...t-changes-while-respecting-home-pathing.md | 62 +++++++++++++++++++ UpgradeSeqBatches.ps1 | 6 +- 2 files changed, 65 insertions(+), 3 deletions(-) diff --git a/.specstory/history/2025-08-21_00-15Z-implement-changes-while-respecting-home-pathing.md b/.specstory/history/2025-08-21_00-15Z-implement-changes-while-respecting-home-pathing.md index 5bc4f95..1f94b3a 100644 --- a/.specstory/history/2025-08-21_00-15Z-implement-changes-while-respecting-home-pathing.md +++ b/.specstory/history/2025-08-21_00-15Z-implement-changes-while-respecting-home-pathing.md @@ -360,3 +360,65 @@ You can run this from any project directory and it will create the `_CURRENT` fo --- +_**User**_ + +can we Home-ify @UpgradeSeqBatches.ps1 as well? + +--- + +_**Assistant**_ + +Absolutely! Let me update `UpgradeSeqBatches.ps1` to use your home pathing instead of the hardcoded `A:\` paths. + + +--- + +
Edit file: UpgradeSeqBatches.ps1 + +undefined + +**Chunk 1** +Lines added: 2, lines removed: 2 + +```diff +@@ -1,6 +1,6 @@ + # 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)) { +``` + +
+ +--- + +
Edit file: UpgradeSeqBatches.ps1 + +undefined + +**Chunk 1** +Lines added: 1, lines removed: 1 + +```diff +@@ -20,5 +20,5 @@ + + # 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 +``` + +
+ +--- + +Perfect! Now `UpgradeSeqBatches.ps1` is properly "Home-ified" with your pathing: + + +--- + diff --git a/UpgradeSeqBatches.ps1 b/UpgradeSeqBatches.ps1 index e7c2401..dee11d4 100644 --- a/UpgradeSeqBatches.ps1 +++ b/UpgradeSeqBatches.ps1 @@ -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) {