Skip to content

Instantly share code, notes, and snippets.

View nikanos's full-sized avatar

Nikanos Polykarpou nikanos

  • ::1, Nicosia, Cyprus
View GitHub Profile
@nikanos
nikanos / merge_mp4.py
Created October 7, 2018 19:48
Avidemux script - merge mp4 files in a folder
#Avidemux script (works with Avidemux v 2.7.1)
#Merges all the mp4 files of a folder to a "_merged.mkv" file in the same folder
ext="mp4"
inputFolder=""
currentItemIndex=0
#
def loadOrAppend(filein):
if(currentItemIndex==1):
@nikanos
nikanos / CleanFolder.cmd
Created October 7, 2018 18:15
Clean old files in folder - Windows batch script
@ECHO OFF
SET days=%1
SET folder=C:\_FolderToClean_
IF %days%.==. GOTO NoDaysEntered
FORFILES /P "%folder%" /D -%days% /C "cmd /c DEL /Q @path"
IF ERRORLEVEL 1 GOTO ForFilesError
GOTO End