View Full Version : wild card for batch file
Anonymous
11-29-2004, 06:48 PM
Is there a way to use a wild card for the file name in the batch file when using VDR in association with BTV so that the generic batch file can be scheduled to run at say 3:00 am each morning and find all newly recorded files in the BTV directory and process them. I know a bit about programming, but don't know if such is available in this case.
Are you the same user who contacted me earlier today via email?
Anonymous
11-30-2004, 03:28 PM
No I just created an account and didn't realise it said guest instead of Bronwyn. I'm just a newbie to all this.
I'll post a batch file that will do this later this week.
Bronwyn
11-30-2004, 04:15 PM
That would be great! I am really impressed with the quality of your program so far. It is very solid, easy to use, and fills a gap that a lot of people are looking to fill.
As promised, here's a batch file for processing all the BTV chapter files in a folder and automatically running them through VideoReDo. Execution notes:
1) To run this, type from the command line: cscript //nolog AutoBatch.vbs (assuming you named this file AutoBatch.vbs).
2) You'll need to change the files / folders on the commented lines to match your system.
3) Your Virus checker may require you to authorize this script before executing it.
set fso = CreateObject("Scripting.FileSystemObject" )
set WshShell = CreateObject( "Wscript.Shell" )
set f = fso.GetFolder("c:\shows" ) ' Folder where the batch files are located.
set fc = f.Files
for each file in fc
filename = file
search = instr(filename, ".chapters.xml" ) ' Pick up all the BTV chapter files.
if ( search > 0 ) then
outputfilename = left(filename,search-5) & " (02).mpg"
cmd = "wscript //nologo //B ""c:\program files\videoredo\vp.vbs"" " ' VideoReDo batch script.
cmd = cmd & chr(34) & filename & chr(34) & " " ' Input project file.
cmd = cmd & chr(34) & outputfilename & chr(34) & " " ' Output file.
wscript.echo( cmd )
call WshShell.Run( cmd, 1, true )
end if
next
glbrown
02-20-2005, 09:59 AM
This batch file is pretty hot ;)
I modified it to process all of the project files of cuts I create with SageTV and it works slick.
Is there any way to suppress the VRD screens so this can run silent?
thanx -gary-
Our next beta has a new option, "/q", in the batch script script, the vp.vbs file. This option will let VideoReDo batch projects run silently except for a brief flash while the file is being opened.
If you email me at support@videoredo.com, I'll send you the new script. You'll also need to download beta build #320 (see beta topic on this message board for the location), to get the program support that is needed for this feature.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.