I have some powershell code that calls WinZip and makes an archive.
$program = "c:\program files (x86)\WinZip\WZZIP.EXE"
& $program -a -P -r c:\temp\test.zip ("\\server.domain.com\FirstName LastName\ProjectId\*.*")
The two backslashes are part of a UNC path. I must use UNC and a fully qualified domain name.
The above code attempts to run but hangs until I kill it (press the stop button in ISE).
When I wrap the UNC path in parenthesis, again the code attempts to run but hangs.
How do I fix this? I'm stuck with UNC paths and using WinZip.