79248954

Date: 2024-12-03 19:36:53
Score: 6 🚩
Natty: 5
Report link

I tried the one line command Get-ChildItem "." | ForEach-Object { Compress-Archive -path $.Name -destinationPath "$($.Name).zip"} it works however it keeps the previous extension as well e.g if the filename is abc.csv it is now converted to abc.csv.zip is there anyway to just get abc.zip?

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): is there any
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Rahim S