I am trying to create a zip file using a batch file in windows but from what I have read I guess this isn't possible natively. So I want to attack this from the next best thing a windows user is likely to have, Powershell. Can I call PS, pass a variable from the batch with commands for PS to create the zip? This needs to take place on the desktop.
This is what I have but am confident its nonsense
.
This is what I have but am confident its nonsense
Code:
Powershell.exe Compress-Archive . %variablename%.zip