Tags: #scripting #powershell
# Automatic File Unzipper
This PowerShell script will automatically unzip all zip files in a specified folder, then watch that folder so that if any new zip file is added to that folder it will also be automatically unzipped.
[[auto_unzip.ps1]]
If you want to have a folder on your computer to always have this functionality, you can set that up with Task Scheduler.:
1. Open Task Scheduler and in the Action menu at the top click "Create Task…"
2. On the "General" tab enter a name in the "Name" field.
3. On the "Triggers" tab click the "New…" button.
1. For "Begin the task:" select "At log on".
2. Click the "OK" button.
4. On the "Actions" tab click the "New…" button.
1. For the "Program/script:" field enter:
`C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`
2. For the "Add arguments (optional):" field enter (with paths updated appropriately for your setup):
`-ExecutionPolicy Bypass -File "C:\Scripts\auto_unzip.ps1" "C:\Folder\To\Automatically\Unzip"`
3. Click the "OK" button.