PowerShell Script to Compress DICOM Files Using dcmcjpeg
Enable PowerShell script execution; without this step, the script will not run
Set-ExecutionPolicy -Scope Process -ExecutionPolicy BypassRun the script with the root directory as the argument to compress
dicompress.ps1 <DIR>Run with the decompression tool instead to revert
dicompress.ps1 <DIR> "dcmdjpls"