NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 354 355 356 357 358 … 433 Next »
PostUpdateEPG doesn't run

PostUpdateEPG doesn't run
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#11
2011-07-15, 09:50 PM
johnsonx42 Wrote:YOU NEED THE CD COMMAND! Please put it in.
Just a quick note...using 'cd' aka 'chdir' isn't always enough if things are on different drives. You also need to change the current working drive. Example pasted directly from my command prompt...

Code:
C:\Program Files\NPVR>cd d:
D:\

C:\Program Files\NPVR>cd d:\npvr

C:\Program Files\NPVR>cd d:
D:\nPVR

C:\Progras\m FileNPVR>

Obviously my command prompt is currently working in 'C:\Program Files\NPVR' and I execute 'cd d:' - doing this queries the working directory for 'd:' (returning 'D:\') but doesn't change the working directory for my command prompt.

I then execute 'cd d:\npvr' to actually change (rather than query) the working directory for 'd:' and then follow this by executing 'cd d:' again which shows that the working directory for 'd:' has indeed changed to 'D:\nPVR'.

Notice, however, that none of this has changed the current working directory of my command prompt - the prompt still shows 'C:\Progras\m FileNPVR>'. This behaviour applies to a batch file as well so changing the working drive is important in order to cope with relative as opposed to absolute paths.

It can get more complex than this but I won't go into further detail. Smile

Cheers,
Brian
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#12
2011-07-15, 10:48 PM
if you use the "/d" flag then cd will change the drive, too. In your example above, you could use "cd /d d:\npvr" to change to \npvr and the D: drive.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#13
2011-07-15, 11:09 PM
ElihuRozen Wrote:if you use the "/d" flag then cd will change the drive, too. In your example above, you could use "cd /d d:\npvr" to change to \npvr and the D: drive.
Very true but that's where it gets into the 'more complex' bit that I mentioned. My general approach would be to simply do...

Code:
d:
cd \npvr
...admittedly that does the same as using your '/d' example but it's also possible to do much more complex things using relative paths on different drives and I didn't want to complicate the issue with going into too many details of how things can work. My main point was to keep it simple by having a preceding drive change line above the 'cd' line as I demonstrated a few posts back.

It's entirely possible to never change drive (from a batch file's perspective) but to change working directories on multiple drives and execute commands in a relative fashion rather than using absolute paths....and now I've just complicated things which I didn't intend to do. Smile
« 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
  NextPVR Recording Service doesn't install from Services SamM 4 2,145 2020-08-02, 01:11 AM
Last Post: SamM
  2020 TV Guide Doesn't Show up rmahlberg 14 9,617 2020-01-04, 06:43 PM
Last Post: sub
  Forcing a SXXEXXX when one doesn't exist bigoldboy 13 5,765 2019-12-11, 11:40 PM
Last Post: JavaWiz
  Local News M3U8 link doesn't play audio caseguy 37 13,562 2019-11-26, 05:11 PM
Last Post: caseguy
  Issue with Beast IPTV recording - Skipping + Doesn't record full show abrupt ending russmehta01 3 3,096 2019-02-26, 09:20 PM
Last Post: sub
  NextPVR Kodi plugin doesn't remeber the group setting when it is re-run Beeman 5 1,809 2019-01-11, 11:53 PM
Last Post: Beeman
  4.2.3 install doesn't update version in config.xml sgilani 3 1,730 2018-11-12, 05:17 AM
Last Post: sub
  Mdapi stopped working, Acamd doesn't get any data Sheik Yerbouti 4 2,419 2018-09-17, 06:27 AM
Last Post: Reddwarf
  NextPVR Refuses to Record if signal doesn't lock fast enough ChaosMageX 2 1,823 2018-05-02, 08:26 PM
Last Post: ChaosMageX
  VLC Media Player doesn't play 4.1.0 BrianGGG 2 1,566 2018-03-13, 02:42 PM
Last Post: BrianGGG

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

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

Linear Mode
Threaded Mode