2007-02-10, 06:41 PM
The following windows script will copy the resulting VMR9.mpg file from YouTube plugin into myvideos folder and give it a uinque name (timestamped name).
My question is: Is there a way to make GBPVR execute this vbs script (batch file) automatically after converting to mpg?
Maybe in config.xml??
Or maybe assign a remote bottom to execute this action?
Otherwise I need to use Girder to do this?
No other way?
My question is: Is there a way to make GBPVR execute this vbs script (batch file) automatically after converting to mpg?
Maybe in config.xml??
Or maybe assign a remote bottom to execute this action?
Otherwise I need to use Girder to do this?
No other way?
Code:
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim strCurrentFolder, strTargetFolder, fn1, fn2, strDateTime, str
strCurrentFolder = "C:\Recordings\"
strTargetFolder = "C:\MyVideos\"
fn1="VMR9.mpg"
str=Now()
strDateTime = DateDiff("s","01/01/1970 00:00:00", str)
fn2="VMR9_" & strDateTime & ".mpg"
f1 = strCurrentFolder & fn1
f2 = strTargetFolder & fn2
If objFSO.FileExists(f1) = True Then
objFSO.CopyFile f1, f2
End If