Winrar – Zip multiple files via the command line (preserve directory structure)

Make sure you are using Winrar (https://www.rarlab.com/)

Feel free to use relative path or absolute path

winrar a -afzip patch-$(date +%Y-%m-%d_%H-%M-%S).zip c:\file1.test c:\file2.test