Command prompt: Creating a zip file using powershell's compress-archive

  1. Open Command Prompt
    1. e.g. enter cmd in search
  2. Move to directory where a file you want to zip located using cd command.
    • e.g. cd c:\Users\yourloginname\Documents\
  3. powershell compress-archive before.txt after.zip
    • Result: c:\Users\yourloginname\Documents\after.zip is created.

Comments

Popular posts from this blog

HIK: Getting current character and current source.