View Full Version : A little command very useful...


lutinor
30th June 2011, 20:51
Hi all,

I found this line very useful :

command.com /c tree /F /A > Listing.txt

You put that in a .bat files and you get when you lauch it, you get a Listing.txt file with all name. This is very useful when you encode a very large amount of files (your command line will be faster done).

Nonetheless i have a question. With tis line you get :

Media1.mkv
Media2.mkv

Do you have in mind a way to :

Destination.264 Media 1.mkv

If it's possible you just need to copy and paste the command line and you are done

:)

shroomM
30th June 2011, 21:48
I normally do it like this when batch encoding ...

Start > Command Prompt, then ...

O:\doom9>dir
Volume in drive O is Work
Volume Serial Number is 26BE-FEA0

Directory of O:\doom9

30.06.2011 22:46 <DIR> .
30.06.2011 22:46 <DIR> ..
30.06.2011 22:46 2 mkv 1.mkv
30.06.2011 22:46 2 mkv 2.mkv
30.06.2011 22:46 2 mkv 3.mkv
30.06.2011 22:46 2 mkv 4.mkv
30.06.2011 22:46 2 mkv 5.mkv
30.06.2011 22:46 2 mkv 6.mkv
30.06.2011 22:46 2 mkv 7.mkv
30.06.2011 22:46 2 mkv 8.mkv
30.06.2011 22:46 2 mkv 9.mkv
9 File(s) 18 bytes
2 Dir(s) 297.751.592.960 bytes free

O:\doom9>for %i in (*.mkv) do @echo %i
mkv 1.mkv
mkv 2.mkv
mkv 3.mkv
mkv 4.mkv
mkv 5.mkv
mkv 6.mkv
mkv 7.mkv
mkv 8.mkv
mkv 9.mkv

O:\doom9>for %i in (*.mkv) do x264 --output "%~ni.mkv" "%i"

Blue_MiSfit
1st July 2011, 00:14
dir /b does this too.

Also, this isn't the right place for such discussion. Moved to PC Hardware & Software.

lutinor
1st July 2011, 08:02
dir /b does this too.

Also, this isn't the right place for such discussion. Moved to PC Hardware & Software.

Well, this is about x264.exe and make encoding easyer, don't you think ?

Groucho2004
1st July 2011, 09:17
Well, this is about x264.exe and make encoding easyer, don't you think ?

No, it's not. Your post is about the most basic console commands and has nothing to do with video encoding.