A collection of scripts for use with the Moodle "Assignment" activity.
Currently, two batch (pure cmd) scripts are provided, tested in Windows 10.
-
GenerateFolderStructure.bat , which generates the folder structure required by the Moodle Assignment activity to upload "feedback files" individually for each student. The name and ID information comes from the offline grading csv, which can be downloaded as described here.
-
FillFoldersFromPool.bat , which fills each folder found within the "Students" folder choosing a file at random from those in the "Pool" folder. The use case is if we have a set of instructions from which we want to give each student one at random.
-
Create a folder in your system where the process will take place.
-
Copy the script GenerateFolderStructure.bat to this folder.
-
Download the offline grading worksheet (csv) to this folder as described here. This must be the only .csv file in this folder.
-
Run GenerateFolderStructure.bat .
-
Inside the "Students" sub-folder, you should find the generated folder structure. Once you are done filling them with your files as you please, add these folders to a zip file and use the corresponding option in Moodle Assignment to upload it.
-
A csv output file is created with each run named folder_structure.log
-
Generate the folder structure as described before. Copy FillFoldersFromPool.bat to the base, original folder you created in step 1 of the Folder Structure Generation.
-
Create a "Pool" sub-folder, copy all the files that you want to be an option for every student.
-
Run FillFoldersFromPool.bat .
-
In every one of the folders that this script finds inside the "Students" sub-folder, a file will be copied from the "Pool" sub-folder, chosen at random.
-
A csv output file is created with each run named file_assignment.log