New
#1
Need help creating a .bat file moving output into a variable
Hello everyone,
I am looking to create a .bat file to automate task that I need to do about a thousand times. I have some experience with .bat files, however I would still consider myself a beginner. I also didn't really see a good forum for something like this so [Moderators] if it need to be moved I understand. Currently I am running windows 7 x64 SP1 on a HP pavilion a1657c.
I am using this program
http://www.makemkv.com/developers/usage.txt
and with the command "makemkvcon -r info" will get an output of my DVD drive that looks like this
In this output the title holiday movies 1 is what I want to use to create a new folder that has the same name as this. If I can do this then when I convert my DVD I can save it to this new folder. Right now I can go through a GUI which is slow, or I can use the command line interface but have to specify a destination folder that is named correctly before I convert.Code:C:\>makemkvcon -r info MSG:1005,0,1,"MakeMKV v1.6.16 win(x86-release) started","%1 started","MakeMKV v1 .6.16 win(x86-release)" MSG:1004,0,1,"Debug logging enabled, log will be saved as C:/MakeMK V_log.txt","Debug logging enabled, log will be saved as %1","C:/Mak eMKV_log.txt" DRV:0,1,1,1,"DVD+R-DL HL-DT-ST DVD-RAM GH22NP20 1.04","HOLIDAY_MOVIES_1","\\Device\\ CdRom0" DRV:1,0,0,0,"","","" DRV:2,0,0,0,"","","" DRV:3,0,0,0,"","","" DRV:4,0,0,0,"","","" DRV:5,0,0,0,"","","" DRV:6,0,0,0,"","","" DRV:7,0,0,0,"","","" DRV:8,0,0,0,"","","" DRV:9,0,0,0,"","","" DRV:10,0,0,0,"","","" DRV:11,0,0,0,"","","" DRV:12,0,0,0,"","","" DRV:13,0,0,0,"","","" DRV:14,0,0,0,"","","" DRV:15,0,0,0,"","","" Use: makemkvcon [switches] Command [Parameters] Commands: info <source> prints info about disc mkv <source> <title id> <destination folder> saves a single title to mkv file stream <source> starts streaming server backup <source> <destination folder> backs up disc to a hard drive Source specification: iso:<FileName> - open iso image <FileName> file:<FolderName> - open files in folder <FolderName> disc:<DiscId> - open disc with id <DiscId> (see list Command) dev:<DeviceName> - open disc with OS device name <DeviceName> Switches: -r --robot - turn on "robot" mode, see http://www.makemkv.com/developer s
Thank you for any help you can give me even if it is just a link to another web site with help in creating bat files. I posted to sevenforums as I have gotten a lot of help with windows 7 in the past (the tutorials are really good).
-S