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 … 930 931 932 933 934 … 1231 Next »
How to get just the program name and not the whole path

 
  • 0 Vote(s) - 0 Average
How to get just the program name and not the whole path
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#1
2005-11-22, 11:52 PM
I'm writing a script that does different things based on the name of the program.

Example:

if exist "Medium*" goto letterbox:

The problem is, %1 is giving me the full path to the file and not just the file name. Anyone know the variable to get just the filename?

Thanks
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#2
2005-11-23, 02:29 AM
I have a hard time keeping these straight:

%~f1 = file name only with extension
%~n1 = file name only without extension
%~n1.mpg = file name only without extension, but specify your own

%~n1_original.mpg will get you the original file after comclean has run.

The letter d gets you the drive letter, and letter p gets you the file path.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#3
2005-11-23, 07:29 AM
Thanks David. That's just what I was looking for. Actually %~dp1 was the trick for me. Thanks again for the help.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Program MCE remote? arkennedy75 1 2,715 2011-04-13, 12:09 AM
Last Post: pBS
  How to record a program while sleeping broadband412 2 2,176 2011-01-10, 11:13 PM
Last Post: broadband412
  GBPVR keeps recording after end of program stoenjes 2 1,938 2010-10-15, 12:37 AM
Last Post: stoenjes
  Path to file being recorded. brianj 5 2,428 2010-08-08, 10:58 PM
Last Post: brianj
  parallelprocessing does not run on second program when two consecutive recordings zaldwaik 2 1,615 2010-07-20, 12:31 AM
Last Post: zaldwaik
  TS 'fixing' program? (JohnnyCam please read) johnsonx42 3 2,072 2010-07-19, 04:59 AM
Last Post: johnsonx42
  Program Guide Is 2 Hours Off. canbrass 2 1,526 2010-02-27, 06:09 PM
Last Post: canbrass
  2250 sometimes records wrong QAM program steveum 8 2,818 2010-02-16, 10:41 PM
Last Post: whurlston
  Recorded program not playing PVRX2 changed file extension to avi before conversion luttrell1962 5 2,013 2010-02-16, 07:05 PM
Last Post: luttrell1962
  MPEG transport streams and MPEG program stream alevideotestservice 3 1,993 2010-01-19, 02:00 AM
Last Post: pBS

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

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

Linear Mode
Threaded Mode