|
General Discussion General discussion about SageTV and related companies, products, and technologies. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
DOS BAT Question (Find Movies)
Hi. I am trying to build a DOS batch script that will find all of my StarTrek movies and then call another bat file for processing.
I am having trouble with the last part. I get to the point where I have a listing of all of my Star Trek movies found on all of my drives, and I build a .txt file, but not sure how I can now read that data from DOS? Anyone knows? Here is what I have so far: ----------------------------------------------- @ECHO off for %%f IN ( "StarTrek" ) do call :drives %%f goto eof :drives FOR %%d IN ( C: E: F: I: J: K: L: ) do call :do-drive %%d %%1 goto eof :do-drive echo Doing Drive %1 DIR /B "%1\TV Movies\%2*.mpg" > C:\temp\movies.txt type C:\temp\movies.txt for %%m in ( C:\temp\movies.txt ) do call :movie %%m goto eof :movie echo %m goto eof :eof |
#2
|
||||
|
||||
Quote:
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#3
|
|||
|
|||
Yes, I have used DirMon2 for other things.
How do I use DirMon2 *AND* specify strings of file names like to search for "StarTrek*" ? |
#4
|
||||
|
||||
I don't use Dirmon so I can't help you with that. But if you want to develop your own script, I'd recommend learning VBScript or JScript rather than trying to do it with batch code, which is probably the least user-friendly way to do this kind of stuff. (Batch code is like 1960s-era programming technology.)
__________________
-- Greg |
#5
|
||||
|
||||
Quote:
Quote:
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV java issues | jayemdae | SageTV Linux | 3 | 05-20-2007 02:55 PM |
random failed to find gui server | saxman | SageTV Media Extender | 5 | 04-18-2007 03:45 AM |
Padding for Manual recording question | dvd_maniac | SageTV Customizations | 10 | 12-16-2005 08:14 AM |
MVP capability question | SafetyBob | Hardware Support | 27 | 11-30-2005 10:58 PM |
Browsing Video Library - too many movies! | ShadoWolf | SageTV Software | 4 | 11-25-2005 06:07 PM |