home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Delete old Covers and Backdrops no longer in movingpictures.db3
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 874358" data-attributes="member: 18896"><p>Tried it, now it shows "\Team MediaPortal\MediaPortal\Database\" for database folder and "\Team MediaPortal\MediaPortal\Thumbs\" for thumbs, which is not correct either. Looking at the MediaPortalDirs.xml file, I see that the MePo team has changed things and I think they deal with the correct path on XP machines on a different way.</p><p> </p><p>See the CMD environment value of %ProgramData% doesn't even exist on XP, as you have to use %ALLUSERSPROFILE% to get to "C:\Documents and Settings\All Users", it is inside this folder (well "Application Data" subfolder to be exact) that MediaPortal puts its data files.</p><p> </p><p>XP = "%ALLUSERSPROFILE%\Application Data\Team MediaPortal\MediaPortal\database"</p><p>Vista/Win7/Win8 = "%ProgramData%\Team MediaPortal\MediaPortal\database"</p><p> </p><p>So what MediaPortal most likely does (guessing a bit) is to see if the "%ProgramData%" CMD environment variable is empty or contains a path. If it has a path you are on Vista/Win7 and can use it as-is. If its empty then your path becomes "%ALLUSERSPROFILE%\Application Data".</p><p> </p><p>Thats the logic behind it to make it XP/Vista/Win7/Win8/etc compatible, I just don't know how to do that in C# <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p> </p><p>But I'll be happy to test v1.2 for you <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="RoChess, post: 874358, member: 18896"] Tried it, now it shows "\Team MediaPortal\MediaPortal\Database\" for database folder and "\Team MediaPortal\MediaPortal\Thumbs\" for thumbs, which is not correct either. Looking at the MediaPortalDirs.xml file, I see that the MePo team has changed things and I think they deal with the correct path on XP machines on a different way. See the CMD environment value of %ProgramData% doesn't even exist on XP, as you have to use %ALLUSERSPROFILE% to get to "C:\Documents and Settings\All Users", it is inside this folder (well "Application Data" subfolder to be exact) that MediaPortal puts its data files. XP = "%ALLUSERSPROFILE%\Application Data\Team MediaPortal\MediaPortal\database" Vista/Win7/Win8 = "%ProgramData%\Team MediaPortal\MediaPortal\database" So what MediaPortal most likely does (guessing a bit) is to see if the "%ProgramData%" CMD environment variable is empty or contains a path. If it has a path you are on Vista/Win7 and can use it as-is. If its empty then your path becomes "%ALLUSERSPROFILE%\Application Data". Thats the logic behind it to make it XP/Vista/Win7/Win8/etc compatible, I just don't know how to do that in C# :) But I'll be happy to test v1.2 for you :D [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Delete old Covers and Backdrops no longer in movingpictures.db3
Contact us
RSS
Top
Bottom