Can you please copy and paste the text or take a screenshot of the bat file and post here?
+ Reply to Thread
Results 31 to 60 of 63
-
-
Try to remove the ~ in the path, but if I look at it, I think you have more than 256 letters in the pathname. Try to short it down.
-
@echo off
for %%a in (*.avi) do ("D:\Applications\video\editors\MKVToolNix32\mkvmerge.exe" -o "%%~na.mkv" "%%a" )
pause
should this work??
@echo off
for %%a in (*.avi) do ("D:\Applications\video\editors\MKVToolNix32\mkvme rge.exe" -o "-o "K:\Scooby Doo\13 Ghosts\%% na.mkv"" "%%a" )
pause -
Why don't you turn echo on so you can see the exact command lines generated by the batch file?
-
S:\temp\TVShows\Scooby\Scooby-Doo's\~Series\Scooby Doo 13 Ghosts>("D:\Applications\video\editors\MKVToolNix\mkvmerge.exe" -o "K:\Scooby Doo\13 Ghosts\% na.mkv" )
mkvmerge v9.2.0 ('Photograph') 64bit
Error: No input files were given. No output will be created.
How do I save the files in K:\Scooby Doo\13 Ghosts directory?? -
You've specifed where to put the output but you haven't specified the input file.
-
if It is mkvmerge -o Output.avi input.avi then would that make the line in the batchfile:
D:\Applications\video\editors\MKVToolNix\mkvmerge -o K:\Scooby Doo\where\Season1\"%%~na.mkv " " S:\where\Season 1\%%a"? -
You're missing the leading quote on the output filename. And there's an extra space between the end of the output filename and the closing quote.
-
%~ syntax: https://en.wikibooks.org/wiki/Windows_Batch_Scripting#Percent_tilde
That is for a file name passed as the first argument on the command line. When using it within a FOR loop you use "%%" instead of just "%", and the FOR loop token instead of "1", in your case "a". So "%~n1" becomes "%%~na". -
The batch file in post 28 was almost right, it was just missing the input filename:
Code:for %%a in (*.avi) do ("D:\Applications\video\editors\MKVToolNix\mkvmerge.exe" -o "K:\Scooby Doo\13 Ghosts\%%~na.mkv" "%%a")
-
flashandpan007:
I am trying to modify :
@echo off
for %%a in (*.mp4) do ("C:\Program Files\MKVtoolnix\mkvmerge.exe" -o "MKV/%%~na.mkv" "%%a")
pause
with :
-o "D:\Folder\%%~na.mkv" to save the files in L:\Scooby Doo\where\Season 2 can you show the line with modification?
Thank you jagabo & flashandpan007
RBCC -
Code:
@echo off for %%a in (*.mp4) do ("C:\Program Files\MKVtoolnix\mkvmerge.exe" -o "L:\Scooby Doo\where\Season 2\%%~na.mkv" "%%a") pause
-
This is What I get when I take put the @echo off
R:\where\Season 2>for %a in (*.avi) do ("D:\apps\Video\Editors\MKVtoolnix\mkvmerge.exe" -o "L:\Scooby Doo\where\Season 2\%~na.mkv" "%a" )
R:\where\Season 2>pause
Press any key to continue . . . -
Could this be a windows 10? It seems if i reinstall windows it works withmkv/ instead of the l:\ in the output file. But when i add the drive param it farts!
-
Should this :
R:\where\Season 2>for %a in (*.avi) do ("D:\apps\Video\Editors\MKVtoolnix\mkvmerge.exe" -o "L:\Scooby Doo\where\Season 2\%~na.mkv" "%a"
be this:
for %%a in (*.avi) do ("D:\apps\Video\Editors\MKVtoolnix\mkvmerge.exe " -o "L:\Scooby Doo\where\Season 2\%%~na.mkv" "%%a" -
You have different typos in every post. If you can't be bothered to check your syntax and cut and paste properly you're never going to get this working.
-
NM = never mind
it was a free bump after I decided not to get involved.Google is your Friend -
Based on the comments above, either copy and paste (preferred) or take screenshots of your scripts.
If you are already using copy & paste, you need to double check/proof read, and correct the typos. If you are simply reading and typing into your replies, you have typos (which copying will prevent) and someone can actually help you (as opposed to trying to help fix typos and the actual problem).Google is your Friend -
The only thing I need to know is : in batch file language are variable declared with two (%%) percentage marks and what is the first (%) percent for if (%a) is the variable in the second line above? John
-
Ok, so the first (%) is an escape character? So now I haveta figure out escape characters! John
-
Escape characters are characters that indicate the following character(s) is not to be treated as literal text but rather a special command or alternate symbol. In the case of batch files the % sign is an escape character. Since % is an escape character you need a way to include % as literal text. So %% is used.
Similar Threads
-
VP8 stream, witch container to make it work?
By trodas in forum Video Streaming DownloadingReplies: 6Last Post: 11th May 2015, 15:58 -
Many Blurays are only backing up between 10%-50% of the actual video file?
By chuvichee in forum Newbie / General discussionsReplies: 2Last Post: 27th Dec 2014, 06:53 -
Want to make DVD menu with option to select 90 aduio tracks and 5 subtitles
By raza in forum Authoring (DVD)Replies: 4Last Post: 5th May 2014, 16:56 -
Embedded video smoother than actual Youtube
By Skysaberer in forum Video Streaming DownloadingReplies: 2Last Post: 14th Mar 2014, 21:20 -
convert h264 avi container to mp4 container
By azukich in forum Video ConversionReplies: 0Last Post: 6th Apr 2013, 16:09