Overall, this is a set of scripts intended to help determine the severity of Flash Deprecation on a training corpus. Additional scripts will be added over time.
These are PowerShell scripts for locating Flash-based content on a local machine.
As these scripts reference each other, you should either clone this repository or download it as a zip file.
To run them, you will need a PowerShell terminal active. To do this, either:
powershell, orOpen PowerShell window here
The current scripts will tackle two problems:
As the PowerShell syntax might seem a bit odd, we'll start with an example.
Suppose you:
E:SCORM
You would browse to wherever you saved these scripts, open a PowerShell terminal, and type:
PowerShell -File find.ps1 -Path "E:SCORM"
Note: If PowerShell complains about your "Execution Policy", then you can bypass that with an argument:
PowerShell -File find.ps1 -Path "E:SCORM" -ExecutionPolicy Bypass
The window will then describe what files it's finding and eventually produce two CSV files:
Suppose now that you want to filter for only SCORM and SWF content contained in specific paths and that our files looked like:
- E:
- SCORM
- Courses
- final_t1
-Courseware
- course.zip
- testing_t2
-Courseware
- course.zip
- demo_t2
-Courseware
- course.zip
- Others
- Testing
- course.zip
You can filter for a matching path by using the -filter argument. If we only wanted to check those modules with paths resembling final_*Courseware, we could use:
PowerShell -File find.ps1 -Path "E:SCORM" -Filter "\final_.*\Courseware"
While the find.ps1 script runs the find-swf.ps1 and find-in-scorm.ps1 files by default, you can run either of those individually with the same syntax:
PowerShell -File find-in-scorm.ps1 -Path "E:SCORM" -Filter "\final_.*\Courseware"
Each script will produce a different CSV summarizing the information it encountered during execution.
As the find-swf.ps1 script checks plain SWF files sitting in a directory, it can read the SWF headers to deduce more granular information about those files. These CSVs include:
The find-in-scorm.ps1 script checks zip files and tries to determine whether or not they are zipped SCORM modules. These CSVs include information about the quantity of SWF content within those modules: