File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,13 @@ Write-TimedMessage "Window minimized"
91
91
foreach ($folder in $folders ) {
92
92
Write-TimedMessage " Processing folder: $folder " - StartNewStep
93
93
$fileExtension = $folder.Substring ($folder.LastIndexOf (' .' ) + 1 )
94
+ Write-Host " File extension: $fileExtension "
94
95
$app = Get-OfficeApp - FileExtension $fileExtension
95
96
96
97
$ext = " "
97
98
if ($app -ne " Access" ) {
98
99
$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
100
101
. " $PSScriptRoot /scripts/Zip-It.ps1" " ${srcDir}${folder} "
101
102
Write-TimedMessage " Zip file created"
102
103
}
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ if (-not $docDirPath) {
6
6
Write-Host " Error: No docDirPath specified. Usage: Zip-It.ps1 <docDirPath>"
7
7
exit 1
8
8
}
9
+ Write-Host " docDirPath: $docDirPath "
10
+
11
+ # Import utility functions
12
+ $scriptPath = Split-Path - Parent $MyInvocation.MyCommand.Path
13
+ . " $scriptPath /utils/Path.ps1"
9
14
10
15
$currentDir = (Get-Location ).Path + " /"
11
16
Write-Host " Current directory: $currentDir "
You can’t perform that action at this time.
0 commit comments