VideoHelp Forum




+ Reply to Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast
Results 31 to 60 of 63
  1. Can you please copy and paste the text or take a screenshot of the bat file and post here?
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    @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
    Quote Quote  
  4. Why don't you turn echo on so you can see the exact command lines generated by the batch file?
    Quote Quote  
  5. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    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??
    Quote Quote  
  6. You've specifed where to put the output but you haven't specified the input file.
    Quote Quote  
  7. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    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"?
    Quote Quote  
  8. 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.
    Quote Quote  
  9. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    Mkvmerge -o "k:\scooby doo\where\season1\%%~na.mkv" "k:\where\season 1\%%~a " is this right. So %%a is the file name?
    Quote Quote  
  10. %~ 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".
    Quote Quote  
  11. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    Can u rewrite to show me what your saying?
    Quote Quote  
  12. 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")
    Quote Quote  
  13. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    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
    Quote Quote  
  14. 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
    Try this, i only have my phone now.
    Quote Quote  
  15. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    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 . . .
    Quote Quote  
  16. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    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!
    Quote Quote  
  17. Originally Posted by RBCC View Post
    Could this be a windows 10?
    No.
    Quote Quote  
  18. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    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"
    Quote Quote  
  19. 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.
    Quote Quote  
  20. Member Krispy Kritter's Avatar
    Join Date
    Jul 2003
    Location
    St Louis, MO USA
    Search Comp PM
    NM
    Google is your Friend
    Quote Quote  
  21. Originally Posted by Krispy Kritter View Post
    NM
    ??
    Quote Quote  
  22. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    huh?
    Quote Quote  
  23. Member Krispy Kritter's Avatar
    Join Date
    Jul 2003
    Location
    St Louis, MO USA
    Search Comp PM
    NM = never mind

    it was a free bump after I decided not to get involved.
    Google is your Friend
    Quote Quote  
  24. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    I just cant get this right
    Quote Quote  
  25. Member Krispy Kritter's Avatar
    Join Date
    Jul 2003
    Location
    St Louis, MO USA
    Search Comp PM
    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
    Quote Quote  
  26. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    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
    Quote Quote  
  27. Member
    Join Date
    Mar 2011
    Location
    Oregon, US
    Search Comp PM
    Ok, so the first (%) is an escape character? So now I haveta figure out escape characters! John
    Quote Quote  
  28. 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!