NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 251 252 253 254 255 … 1231 Next »
batch move wildcard

 
  • 0 Vote(s) - 0 Average
batch move wildcard
gh_speedyg
Offline

Member

Posts: 171
Threads: 42
Joined: Jan 2008
#1
2008-09-29, 06:29 PM
I'm really into UFC and I have 5 different UFC shows regularly scheduled on my pvr. All of the shows have UFC somewhere in the title. Is there a way to create a batch file or something to automatticly move all of the files with UFC in the title to 1 folder named UFC on a regular basis, instead of having 5 different folders for all the shows?
skippy_nz
Offline

Senior Member

Posts: 582
Threads: 54
Joined: May 2006
#2
2008-09-29, 07:53 PM
gh_speedyg Wrote:I'm really into UFC and I have 5 different UFC shows regularly scheduled on my pvr. All of the shows have UFC somewhere in the title. Is there a way to create a batch file or something to automatticly move all of the files with UFC in the title to 1 folder named UFC on a regular basis, instead of having 5 different folders for all the shows?

not as far as im aware - you would need to write a bat or cmd file to do this - but if you do it then you would also need to modify the database to be able to keep them in the recordings folder - or move them to the video library
gh_speedyg
Offline

Member

Posts: 171
Threads: 42
Joined: Jan 2008
#3
2008-09-30, 11:14 AM
I realize that I would loose them from the db, and thats ok. Any idea how I could write a batch to do this, and how to impliment it with gbpvr?
nappysolo
Offline

Junior Member

Posts: 41
Threads: 4
Joined: Jan 2007
#4
2008-09-30, 02:14 PM
Something like this should work in your PostProcessing.bat file. By the way, I stole this technique from Stattik's transcoding script: http://gbpvr.com/pmwiki/pmwiki.php/Utili...anscodeCut

set ufc_folder=c:\ufc
ECHO "%~dpnx1" > "%~dp0temp.txt"
find /i "UFC" "%~dp0temp.txt" > nul && move %1 %ufc_folder%
del "%~dp0temp.txt"
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#5
2008-09-30, 07:49 PM
gh_speedyg Wrote:I realize that I would loose them from the db, and thats ok. Any idea how I could write a batch to do this, and how to impliment it with gbpvr?

You don't actually have to lose them from the database.

You could use SimpleArchiver to move them.

Alternatively, hunt up the vidimport import tool, add it to the postprocessing.bat that moves them and that will do it too..
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#6
2008-10-01, 03:59 AM
You can do the rename right in the batch file as well...

Code:
Echo.
Echo Reset DB Entry...
Echo .echo on                     >  sqlscript.scr
Echo .output stdout               >> sqlscript.scr
Echo UPDATE RECORDING_SCHEDULE    >> sqlscript.scr
Echo    SET filename='%orig_fileloc%' >> sqlscript.scr
Echo  WHERE filename='%new_fileloc%';      >> sqlscript.scr
@ECHO ON
SQLITE3 GBPVR.DB3 < sqlscript.scr
@ECHO OFF

This code generates a sqllite3 scriipt on the fly, then executes it. The %orig_fileloc% is the old filename in format drive:/path/file.exe (substitute your variable), and the %new_fileloc% is the new location in same format.
nappysolo
Offline

Junior Member

Posts: 41
Threads: 4
Joined: Jan 2007
#7
2008-10-01, 10:02 AM (This post was last modified: 2008-10-01, 10:04 AM by nappysolo.)
JavaWiz,

Shouldn't the orig_fileloc and new_fileloc be swapped in this script? I.e. the WHERE clause should be referencing old_fileloc, correct?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#8
2008-10-01, 06:11 PM
nappysolo Wrote:JavaWiz,

Shouldn't the orig_fileloc and new_fileloc be swapped in this script? I.e. the WHERE clause should be referencing old_fileloc, correct?
ah, you are right. i translated from my exising batch file wrong.

good catch. thanks.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to move the gbpvr recordings folder to a new location? navyblue 7 2,918 2010-07-17, 09:32 PM
Last Post: navyblue
  How To Move GBPVR To D: Drive LewE 6 2,376 2010-06-13, 07:07 PM
Last Post: LewE
  Waking Server from Client WOL (Batch file) imagn 3 2,542 2010-03-20, 11:00 AM
Last Post: martint123
  Check recording status from batch file adwiel 4 1,943 2010-01-24, 09:45 AM
Last Post: pBS
  Move recordings to network drive. jca 3 2,331 2009-12-14, 06:03 AM
Last Post: jca
  Standalone to Server/Client Move dan7827 13 4,636 2009-11-14, 05:31 PM
Last Post: dan7827
  move db and config to another os McBainUK 5 1,950 2009-10-22, 09:00 PM
Last Post: dennit
  Need some help with a batch file for epg updates. JP23 6 2,677 2009-03-17, 11:01 AM
Last Post: gEd
  a batch script to fix some of my problems curt1s 5 2,021 2009-03-13, 11:04 AM
Last Post: McBainUK
  Mouse clicks need a mouse move also? PanoGuy 2 1,419 2009-03-07, 12:07 PM
Last Post: bethanyrayne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode