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 … 701 702 703 704 705 … 1231 Next »
batch file help

 
  • 0 Vote(s) - 0 Average
batch file help
agidius
Offline

Senior Member

Posts: 469
Threads: 77
Joined: Apr 2006
#1
2006-10-06, 06:33 AM
I am trying get the postprocessing.bat file to transcode a video and move it to another folder ONLY if it is a certian show. I know people have mentioned here before about using the IF command in batch files. I have spent the last few days reading articles on the web and experimenting with it, but cant get anything to work.
I seem to get either nothing to pass the IF, or everything passes it.

can somebody that has got something like this working please post the commands so I can see what a working IF looks like??
(or any similar command if you dont use IF)

thanks
Server--AthlonXP 2100+ \ PVR150MCE \ HVR1600 x2
Client 1--Athlon64 3200+
Client 2--Athlon64 3700+
Client 3--Turion64x2 1.9 laptop
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#2
2006-10-06, 07:45 AM
Does this example help you?
http://forums.nextpvr.com/showthread.php?t=16589
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
agidius
Offline

Senior Member

Posts: 469
Threads: 77
Joined: Apr 2006
#3
2006-10-06, 11:01 AM
wow, that looks like alot of greek to me

I messed with it for a while, and I got the if command to work like this:
Code:
IF %1=="C:\Video Archive\Robot Chicken\Robot Chicken_20060930_22302245.mpg" GOTO ROBOT
exit
:ROBOT
call "C:\Documents and Settings\ken\Desktop\sucess.bat"
pause

it will run sucess.bat only if that one file is the argument.

any future recordings will not have the same numbers at the end.
I need to find a way to put wildcards in the end of the filename so it will process all future recordings.
if I replace any characters with ? or * then it fails.

apparently the reason the IF command didnt work for me before was I was trying to use wildcards.

any ideas??
Server--AthlonXP 2100+ \ PVR150MCE \ HVR1600 x2
Client 1--Athlon64 3200+
Client 2--Athlon64 3700+
Client 3--Turion64x2 1.9 laptop
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#4
2006-10-06, 11:10 AM (This post was last modified: 2006-10-06, 12:49 PM by stefan.)
Hmm... this is a long shot; I don't know much about windows batch script programming, but you could try something like this:

Edit: This was so emarassingly hard, I had to delete my suggestion Smile
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#5
2006-10-06, 11:13 AM
Maybe IF doesn't work that way... I have another idea if it doesn't... keep me posted.
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#6
2006-10-06, 11:48 AM
Hm... my suggestion does not work at all... sorry...
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
daveid
Offline

Member

Posts: 134
Threads: 10
Joined: Feb 2006
#7
2006-10-06, 12:52 PM
can't you just use a wildcard like
Code:
IF %1=="C:\Video Archive\Robot Chicken\Robot Chicken[B]*[/B].mpg" GOTO ROBOT
exit
:ROBOT
call "C:\Documents and Settings\ken\Desktop\sucess.bat"
pause
MAIN RIG - Opteron 165 @2900MHz
2x1024 OCZ Platinum @ 480MHz (3.3.3.7)
HTPC - Athlon 64 3800+
2x512 Corsair XMS C2
ATI Theatre Pro 550 - MCE Blaster - Comcast Set Top Box
Hauppauge HVR-2250
Carlito
Offline

Posting Freak

Posts: 817
Threads: 41
Joined: May 2006
#8
2006-10-06, 01:57 PM
hahaha, Robot Chicken..love it!
----------------------
[SIZE="1"]PVRX2 1.3.11
Shuttle SG33G5 Case
Core2Duo E8400 3Ghz -- 4 GB RAM
Hauppauge PVR-150
Adaptec AVC-3610 Dual Tuner
Onboard Intel GMA 3100 through HDMI -- 500GB
37" Westinghouse LCD (1920 x 1080p)

Projects
Program Image Tool[/SIZE]
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#9
2006-10-06, 02:30 PM
Code:
if exist "%~dp1Robot Chicken*" goto transcode:
goto eof:

:transcode <transcode parameters go here>

:eof
agidius
Offline

Senior Member

Posts: 469
Threads: 77
Joined: Apr 2006
#10
2006-10-06, 04:40 PM
the wildcard in the name does not work.
it fails every time.

IF EXIST will process any file as long as the file asked about exists.
so it will process robot chicken, AND every file after it as long as robot chicken is still there.

I dont want to delete the original, just make another.
Server--AthlonXP 2100+ \ PVR150MCE \ HVR1600 x2
Client 1--Athlon64 3200+
Client 2--Athlon64 3700+
Client 3--Turion64x2 1.9 laptop
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  file types of recorded TV paul1 3 3,758 2012-09-30, 05:20 PM
Last Post: sub
  No Data In the Recorded File zb1 5 2,352 2010-08-24, 01:08 AM
Last Post: zb1
  Path to file being recorded. brianj 5 2,421 2010-08-08, 10:58 PM
Last Post: brianj
  error: failure playing back file yonu 4 2,114 2010-07-12, 12:52 AM
Last Post: yonu
  UK Freesat Scan.cache File jeffers 3 2,125 2010-05-25, 10:34 PM
Last Post: jeffers
  3 AC3Filter instances when playing back a still recording TS file? jksmurf 3 1,984 2010-05-17, 12:30 AM
Last Post: jksmurf
  Recording stops at 4gb file size experiencebliss 5 2,471 2010-05-04, 02:54 AM
Last Post: pBS
  Hauppage HVR-950q, no file created when recording, no pause. donbrowne 5 2,102 2010-04-08, 04:03 PM
Last Post: sub
  ffdshow postprocessing on .ts file playback alibert 2 1,739 2010-04-05, 05:33 AM
Last Post: alibert
  ATI Mux / mpeg file recordings playback issues topperdude 10 4,391 2010-03-29, 11:44 PM
Last Post: ww4397

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

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

Linear Mode
Threaded Mode