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
bluesxman
Offline

Senior Member

Posts: 311
Threads: 7
Joined: Jul 2004
#11
2006-10-06, 04:45 PM
agidius Wrote: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.
Only if it exists in the same directory as %1, which if the recording is a robot chicken you'll be fine, if not it won't do anything.

i.e. if %1 is "c:\prog1\prog1123456.mpg" it will look for "c:\prog1\Robot Chicken*.mpg" which will fail.
SWK
Offline

Member

Posts: 116
Threads: 12
Joined: Mar 2005
#12
2006-10-06, 04:59 PM
Hi

If you assign %1 to an enviroment varable you can use the substring features of the SET command - Type SET /? from the command prompt for more info.

[INDENT]REM Get filename only, not path or extension
SET FNAME=%~n1

REM 0123456789012345678901234567890
REM Robot Chicken_20060930_22302245

SET FNAME=%FNAME~0,13%

REM FNAME=Robot Chicken

IF "%1"=="%FNAME%" GOTO :?????
[/INDENT]
The truth will set you free - unless you guilty, in which case lie
agidius
Offline

Senior Member

Posts: 469
Threads: 77
Joined: Apr 2006
#13
2006-10-06, 05:25 PM
SWK Wrote:Hi

If you assign %1 to an enviroment varable you can use the substring features of the SET command - Type SET /? from the command prompt for more info.

[INDENT]REM Get filename only, not path or extension
SET FNAME=%~n1

REM 0123456789012345678901234567890
REM Robot Chicken_20060930_22302245

SET FNAME=%FNAME~0,13%

REM FNAME=Robot Chicken

IF "%1"=="%FNAME%" GOTO :?????
[/INDENT]

truncate the file name??
I didnt know you could do this in dos commands!!!!

I will be playing with this right now.
Server--AthlonXP 2100+ \ PVR150MCE \ HVR1600 x2
Client 1--Athlon64 3200+
Client 2--Athlon64 3700+
Client 3--Turion64x2 1.9 laptop
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#14
2006-10-06, 06:18 PM
This should do what you want.
http://forums.gbpvr.com/showpost.php?p=1...ostcount=5
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
agidius
Offline

Senior Member

Posts: 469
Threads: 77
Joined: Apr 2006
#15
2006-10-06, 07:03 PM (This post was last modified: 2006-10-06, 07:13 PM by agidius.)
I think I got it!!!!!
I got a batch file that has worked in my testing.

thanks for the help guys.
Cool
here is what I ended up with:
Code:
REM RECORDING = filename without dir or ext
SET RECORDING=%~n1

REM SHOW = first 13 letters of RECORDING
SET SHOW=%RECORDING:~0,13%

REM if SHOW = Robot Chicken, run success.bat
REM otherwise, run fail.bat
IF "%SHOW%"=="Robot Chicken" GOTO ROBOT
call "C:\Documents and Settings\ken\Desktop\fail.bat"
pause
exit
:ROBOT
call "C:\Documents and Settings\ken\Desktop\success.bat"
pause
exit
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): « Previous 1 2


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,350 2010-08-24, 01:08 AM
Last Post: zb1
  Path to file being recorded. brianj 5 2,414 2010-08-08, 10:58 PM
Last Post: brianj
  error: failure playing back file yonu 4 2,113 2010-07-12, 12:52 AM
Last Post: yonu
  UK Freesat Scan.cache File jeffers 3 2,124 2010-05-25, 10:34 PM
Last Post: jeffers
  3 AC3Filter instances when playing back a still recording TS file? jksmurf 3 1,983 2010-05-17, 12:30 AM
Last Post: jksmurf
  Recording stops at 4gb file size experiencebliss 5 2,470 2010-05-04, 02:54 AM
Last Post: pBS
  Hauppage HVR-950q, no file created when recording, no pause. donbrowne 5 2,101 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,388 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