Skip to content

Commit f077eeb

Browse files
committed
Fiddling with paths
1 parent 4c66ca0 commit f077eeb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Main.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ Write-TimedMessage "Window minimized"
9191
foreach ($folder in $folders) {
9292
Write-TimedMessage "Processing folder: $folder" -StartNewStep
9393
$fileExtension = $folder.Substring($folder.LastIndexOf('.') + 1)
94+
Write-Host "File extension: $fileExtension"
9495
$app = Get-OfficeApp -FileExtension $fileExtension
9596

9697
$ext = ""
9798
if ($app -ne "Access") {
9899
$ext = "zip"
99-
Write-TimedMessage "Creating Zip file and renaming to Office document target" -StartNewStep
100+
Write-TimedMessage "Creating Zip file and renaming to Office document target with path ${srcDir}${folder}" -StartNewStep
100101
. "$PSScriptRoot/scripts/Zip-It.ps1" "${srcDir}${folder}"
101102
Write-TimedMessage "Zip file created"
102103
}

scripts/Zip-It.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if (-not $docDirPath) {
66
Write-Host "Error: No docDirPath specified. Usage: Zip-It.ps1 <docDirPath>"
77
exit 1
88
}
9+
Write-Host "docDirPath: $docDirPath"
10+
11+
# Import utility functions
12+
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
13+
. "$scriptPath/utils/Path.ps1"
914

1015
$currentDir = (Get-Location).Path + "/"
1116
Write-Host "Current directory: $currentDir"

0 commit comments

Comments
 (0)