So this code isn't my work, and truthfully I do not understand it, but if I can fix this bit of code around so it works, that'd be great.
@setlocal enableextensions @cd /d "%~dp0" del lastrecording.mp4 mklink lastrecording.mp4 %1 PAUSE
I'm getting the following errors.
del lastrecording.mp4 Access is Denied for delete function
mklink lastrecording.mp4 %1 The syntax of the command is incorrect. Creates symbolic link.