i have 100's of media files. i want to generate media info based on file name. like 1.mkv=>will contain 1.txt, abc.mkv=>abc.txt
i am not sure how can i do that but here is one thing i tried. generate all mediafile into one text file. problem is it's not scanning the .mkv files. however if i set absolute path it's working like C:\ABC.mkv. i tried "*.mkv" and without ""
not working:
working:Code:@ECHO off MediaInfo "*.mkv">a.txt PAUSE
any help please?Code:@ECHO off MediaInfo "C:\aa.mkv">a.txt PAUSE
+ Reply to Thread
Results 1 to 4 of 4
-
-
For all MKV files in a folder:
For all MKV files in a folder and subfolders therein:Code:for %%F in ("*.mkv") do "g:\program files\mediainfocli\mediainfo" "%%~dpnxF" >"%%~dpnF.txt"
For MKV and MP4 all files in a folder and subfolders therein:Code:for /R %%F in ("*.mkv") do "g:\program files\mediainfocli\MediaInfo.exe" "%%~dpnxF" >"%%~dpnF.txt"
You might want to include the extension in the text file name in case you have both an mp4 and an mkv of the same video in the same folder.Code:for /R %%F in ("*.mkv" "*.mk4") do "g:\program files\mediainfocli\mediainfo" "%%~dpnxF" >"%%~dpnF.txt"
Change the path to mediainfo cli as necessary for your system. Those all assume they are in a batch file. If you want to enter the commands directly in a CLI window change all the double percents to single percents.Code:for /R %%F in ("*.mkv" "*.mk4") do "g:\program files\mediainfocli\mediainfo" "%%~dpnxF" >"%%~dpnxF.txt" -
thank you all

edit:
any difference between ~dpnF.txt and %%~dpnxF.txt?Last edited by iKron; 5th Jul 2021 at 05:19.
Similar Threads
-
Best Quick Upscale Script for 2D Animation and How to Batch
By bradwiggo in forum Video ConversionReplies: 2Last Post: 22nd May 2021, 15:38 -
Useful FFmpeg Windows Batch Script
By Guanadon in forum Newbie / General discussionsReplies: 0Last Post: 22nd Sep 2020, 11:48 -
Need Batch script help to prevent it asking for a language
By VideoFanatic in forum Video ConversionReplies: 0Last Post: 20th Dec 2019, 20:45 -
problem with youtube-dl used in batch script
By stax76 in forum ProgrammingReplies: 0Last Post: 27th Jun 2019, 21:52 -
Batch Script for Youtube-dl
By syalazar in forum Video Streaming DownloadingReplies: 1Last Post: 5th Feb 2019, 11:10


Quote