syg_hira's tech memo

windows server関連のTipsのおぼえがき

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.