Personal Video Database

English => Support => Topic started by: simscj2000 on January 18, 2014, 06:43:00 am

Title: Remove portions of File Path within PVD
Post by: simscj2000 on January 18, 2014, 06:43:00 am
I have my DVDs stored on an external hard drive with the drive letter E:.  My PC is set up as a web server to stream my movies to my TV.  When creating the XML file, I need the file path to simply be the file name without the path.  At this time, I am manually using replace in Notepad to update the XML file any time I update it, but that is certainly error prone.

Is there some way within PVD that I can tell it the root directory of my videos, and have it only include any path information beyond that root?

Thanks for your help!
Title: Re: Remove portions of File Path within PVD
Post by: nostra on January 18, 2014, 02:49:18 pm
Feel free to study the export plugin documentation: http://www.videodb.info/help/hlp_export.html

You can use the "replace " template option or better yet the ExtractFileName function. There is also a StringReplace function. So plenty of possibilities, really :)