i need a programmer

Job ID: 34557225

Budget: $30 – $250 AUD

I am a university lecturer that would like a script written to help with marking of students work
we collect student files and download them in order to mark and our system currently puts their surname first and first name second and then the name of the file such as cat.jpg
so it would be smith john cat.jpg
I would like the script to be able to gather all of the students files, create a folder with their name on it, and move those files into that folder ready for marking
I currently have a script that I wrote years ago from code off of the Internet that used to work and did what I wanted but I would think we could do something a little better these days
my script used to work as of a couple of weeks ago but for some reason now does not and I don't have the time to try and fix it not being a programmer.
I have listed a copy of what was in that script below so that you can see the type of thing that I mean
I have also uploaded a screenshot of the format that students files come in so you can see
even if this script were fixed I would be happy but hopefully something more robust would be good if possible
we have a marking sheet that is supplied by the uni and it would also be nice if that script could auto fill the students name from the folder that got created in the word doc. I have also uploaded a sample copy of the marking sheet that we have in case this is possible

@echo off
setlocal enabledelayedexpansion
for %%A in (*.pptx *.nk *.pptm *.doc *.docx *.jpeg *.pdf *.ppt *.hip *.uproject *.mov *.prproj *.png *.mpeg *.mp4 *.rtf *.zip *.nknc *.indd *.rar *.mpeg4 *.avi *.txt *.blend *.ai *.ma *.mb *.hipnc *.jpg *.aep *.tga *.obj *.mtl *.fbx *.odt *.nk *.mud *.bak *.swatches *.HEIC *. *.7z *.wmv *.m4v *.mel *.potx *.webp)
do (
echo file found %%A
for /f "delims=" %%B in ("%%A") do set fname=%%~nB
for /f "delims=" %%C in ("%%A") do set fextn=%%~xC
for /f "tokens=1* delims=_" %%D in ("!fname!") do set folname=%%D
echo folder name !folname!
if not exist "!folname!" (
echo Folder !folname! does not exist, creating
md "!folname!"
) else (
echo Folder !folname! exists
)
echo Moving file %%A to folder !folname!
move "%%A" "!folname!"
)
pause
Related categories: Script Install Data Entry Word