seqbatches to home paths too
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
---
|
||||
|
||||
<details><summary>Edit file: UpgradeSeqBatches.ps1</summary>
|
||||
|
||||
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)) {
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
<details><summary>Edit file: UpgradeSeqBatches.ps1</summary>
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
Perfect! Now `UpgradeSeqBatches.ps1` is properly "Home-ified" with your pathing:
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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