2009-09-15, 07:01 PM
I found the following script (extract) on the forum,
REM last line in logfile is the new filename
For /F "tokens=*" %%i IN (.\logs\WizRenameRecording.log) DO set newName=%%i
However, the last line of the log doesn;t / no longer has the new file name.
Can a clever scripting bunny show me how I can do this (Piece of cake in *nix but my wiindows scripting skills are not good enough).
The line with the new file name is
Result : BBC News at Six
cheers!
==========================================================
WizRenameRecording - Rename recording filenames
Run on: 15/09/2009 18:36 (v0.1.0.3)
==========================================================
Parameters:
[0]: R:\Recordings\BBC News at Six\BBC News at Six_20090915_18001830.ts
[1]: ({episode}{or}{show})
Retrieving entry from Recordings table...
Evalute called.
Source : BBC News at Six
Pattern: ({episode}{or}{show})
Result : BBC News at Six
Rename called.
Source : R:\Recordings\BBC News at Six\BBC News at Six_20090915_18001830.ts
Target : R:\Recordings\BBC News at Six\BBC News at Six.ts
Step1: Rename file- Successful.
Step2: Comskip/support files- 3 comskip/support files renamed.
Step3: Rename thumbnails- 0 thumbnails renamed.
Step4: Update recording table- Successful.
Complete: 15/09/2009 18:36
Return code: 0
==========================================================
REM last line in logfile is the new filename
For /F "tokens=*" %%i IN (.\logs\WizRenameRecording.log) DO set newName=%%i
However, the last line of the log doesn;t / no longer has the new file name.
Can a clever scripting bunny show me how I can do this (Piece of cake in *nix but my wiindows scripting skills are not good enough).
The line with the new file name is
Result : BBC News at Six
cheers!
==========================================================
WizRenameRecording - Rename recording filenames
Run on: 15/09/2009 18:36 (v0.1.0.3)
==========================================================
Parameters:
[0]: R:\Recordings\BBC News at Six\BBC News at Six_20090915_18001830.ts
[1]: ({episode}{or}{show})
Retrieving entry from Recordings table...
Evalute called.
Source : BBC News at Six
Pattern: ({episode}{or}{show})
Result : BBC News at Six
Rename called.
Source : R:\Recordings\BBC News at Six\BBC News at Six_20090915_18001830.ts
Target : R:\Recordings\BBC News at Six\BBC News at Six.ts
Step1: Rename file- Successful.
Step2: Comskip/support files- 3 comskip/support files renamed.
Step3: Rename thumbnails- 0 thumbnails renamed.
Step4: Update recording table- Successful.
Complete: 15/09/2009 18:36
Return code: 0
==========================================================
âIf this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.â