VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. hi

    want to create nfo file by drag drop specific video files and not do whole folder like this post here

    https://forum.videohelp.com/threads/383550-Mediainfo-CLI-to-creat-NFO

    thanks for any help
    Quote Quote  
  2. Code:
    For %%F IN (%*) do (
    ("C:\Program Files\MediaInfo CLI\MediaInfo.exe" "%%~fF" > "%%~dpnF.txt")
    shift)
    Edit: Was late last night. Should have tested before I uploaded. Script edited... and tested.
    Last edited by Secoast; 24th Jun 2024 at 15:19.
    Quote Quote  
  3. Originally Posted by Secoast View Post
    Code:
    for %%f in (%*) do (
    ("C:\Program Files\MediaInfo CLI\MediaInfo.exe" "%%ff" > "%%~nf.nfo")
    shift)

    thanks

    i tried it but im getting a 2bytes empty nfo file
    Quote Quote  
  4. Originally Posted by khaled22 View Post
    i tried it but im getting a 2bytes empty nfo file
    You need the Mediainfo client, not the mediainfo GUI.
    https://mediaarea.net/en/MediaInfo/Download/Windows

    Then you can use this batch:
    Code:
    @echo off
    "E:\MediaInfo_CLI\MediaInfo.exe" "%~1" >"%~1.nfo"
    exit
    Adjust the path to your Mediainfo.exe.
    Quote Quote  
  5. Originally Posted by ProWo View Post
    Originally Posted by khaled22 View Post
    i tried it but im getting a 2bytes empty nfo file
    You need the Mediainfo client, not the mediainfo GUI.
    https://mediaarea.net/en/MediaInfo/Download/Windows

    Then you can use this batch:
    Code:
    @echo off
    "E:\MediaInfo_CLI\MediaInfo.exe" "%~1" >"%~1.nfo"
    exit
    Adjust the path to your Mediainfo.exe.
    Thanks works. If i want to drop 2 or more files what it needs to be changed?
    Quote Quote  
  6. Originally Posted by khaled22 View Post
    Thanks works. If i want to drop 2 or more files what it needs to be changed?
    Here you go (adjust the mediainfo path):
    Image Attached Files
    Quote Quote  
  7. Originally Posted by ProWo View Post
    Originally Posted by khaled22 View Post
    Thanks works. If i want to drop 2 or more files what it needs to be changed?
    Here you go (adjust the mediainfo path):
    thank you very much..added mediainfo location and changed to nfo file..works fine
    Quote Quote  
  8. Coming to this one a wee bit late.
    is there a way that I can get the MediaInfo CLI to generate a single file for ALL specific media in a set of folders.

    I am using the script below from a parent folder currently to loop through all sub-folders. I only need one mediafile file per folder though.

    for /R %%F in ("*.wav" "*.flac" "*.mka") do "C:\Program Files\MediaInfo\MediaInfoCLI\mediainfo.exe" "%%~dpnxF" >"%%~dpnxF.txt"

    One other question, how do I change the formatted output to html, if required. Just changing the extension gives me an html file with unformatted content.

    Thank you.
    Last edited by dragonfly; 2nd Jun 2025 at 06:49.
    Quote Quote  
  9. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    For all output to a single file in a folder you need to give it a unique file name and output all from MediaInfoCLI to that file.
    Code:
    for /R %%F in ("*.wav" "*.flac" "*.mka") do "C:\Program Files\MediaInfo\MediaInfoCLI\mediainfo.exe" --output=html "%%~dpnxF" >> "%%~dpF~MediaList.txt"
    Last edited by pcspeak; 3rd Jun 2025 at 16:40.
    Quote Quote  
  10. Originally Posted by pcspeak View Post
    For all output to a single file in a folder you need to give it a unique file name and output all from MediaInfoCLI to that file.
    Code:
    for /R %%F in ("*.wav" "*.flac" "*.mka") do "C:\Program Files\MediaInfo\MediaInfoCLI\mediainfo.exe" --output=html "%%~dpnxF" >> "%%~dpF~MediaList.txt"
    Excellent stuff!! Many many thanks, you have saved me a massive amount of time. Huge thanks!
    Quote Quote  



Similar Threads

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