Search found 4 matches

by MilkmanWes
Mon Sep 24, 2012 3:01 pm
Forum: Command Line Interface And Scripting
Topic: Windows script to convert all media files in a root dir?
Replies: 10
Views: 6006

Re: Windows script to convert all media files in a root dir?

A windows batch file to unzip and convert and make sure that it doesnt run handbrakecli concurrently with other instances REM Make it less chatty @echo off REM If you leave tis out, you're gonna have a bad day @SETLOCAL enabledelayedexpansion REM Take the folder passed as a command line parameter an...
by MilkmanWes
Sat Sep 22, 2012 2:30 pm
Forum: Command Line Interface And Scripting
Topic: Windows script to convert all media files in a root dir?
Replies: 10
Views: 6006

Re: Windows script to convert all media files in a root dir?

an addendum to the above

%%~nf = name of the file
%%~nxf = name with extension
%%~pnxf = path (without drive letter) name and extension of the file
%%~dpnxf = drive letter:\path\name.extension
by MilkmanWes
Sat Sep 22, 2012 2:23 pm
Forum: Command Line Interface And Scripting
Topic: how bad is it - multiple encodings started by batch file
Replies: 1
Views: 517

how bad is it - multiple encodings started by batch file

Setting up a batch file to be executed by a torrent and there is a real possibility of it doubling up on processing as one torrent completes downloading and starts processing before it's predecessor is completed. I can take various steps to force it to run only one handbrakecli thread at a time, tha...
by MilkmanWes
Sat Sep 22, 2012 1:50 pm
Forum: Command Line Interface And Scripting
Topic: Windows script to convert all media files in a root dir?
Replies: 10
Views: 6006

Re: Windows script to convert all media files in a root dir?

Not to disregard all the previous suggestions, but OP wanted to do this in Windows and it is very possible to do so for %%f in (*.mkv) do ( echo %%~nxf ) in a windows batch script this will cycle through all files with the extension mkv and echo the name to the screen. replace the echo command with:...