Write-Zip issues

Topics: Developer Forum, User Forum
Aug 6, 2012 at 12:03 AM

Can someone please help me out here? I have wrote a rather lengthy script that zips files from a different drive letter other than c:. I get the error about the rootpathentry not being on the C: drive.

I see that in Write-Zip there is an option for -entrypathroot [string] but I cant for the life of me figure out what to put in there.

# Gzip all failed files that are older than 10 minutes
get-childitem -Path "e:\upload\Failed\" |
 where-object {$_.LastWriteTime -lt (get-date).AddMinutes(-10)} |
 write-zip  -entrypathroot ?? -level 9 -outputPath $Zip -flattenpath -quiet |

I would really appreciate the assistance.