syg_hira's tech-work memo

某人材サービス会社の情報共有インフラ担当のおぼえがきです。MicrosoftのEnterprise製品多め。

The file compression in script on Windows. CAB is good, ZIP is not good.

If you want to know how to compress files in script(PowerShell, VBScript ...)and implemented with only windows builtin function, you may find "operate ZIP folder provided Windows Shell object"
But it is not stable on production server.
I implemented file compression batch with powerShell, Windows.Shell process is crashed and powershell.exe process is dead.
Because of killing PowerShell.exe, error handl block( try - Catch ) is not work.

I suppose to use CAB compresion.
See this article.