coollector.com
https://www.coollector.com/

Error: the file "english.movies.dat" couldn't be f
https://www.coollector.com/viewtopic.php?f=2&t=455
Page 1 of 1

Author:  CraigNobbs [ Tue Aug 10, 2010 7:06 am ]
Post subject:  Error: the file "english.movies.dat" couldn't be f

The error message pops up on startup of the application.

Quote:
Error: the file "english.movies.dat" couldn't be found

Searched those locations:

C:\Users\Public\Documents\Coollector\Databases\english.movies.dat
C:\Users\Public\Public Documents\Coollector\Databases\english.movies.dat


I know why this is happening. The developer has either hard coded the location of the Users\Public directory to the C: or is pulling the drive letter from the Windows directory. It is possible to move the Users\Public folder to another drive (letter) and have Windows and (most) other applications work without issue.

You should be pulling the Users\Public folder location from the registry at:
Code:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\

The String value for "Public" will point you to the correct location.

Also of note, the issue occurs when attempting to write to the "Program Files (x86)" folder on C: (the OS protected one) and the folder by the same name on my D: which is not protected by the OS.

I'm running Windows 7 Pro 64Bit, but as a developer that has researched this for my own applications, this is the key where Windows pulls the information from for all iterations of Vista and Win7 for the Public folder... and others.

Author:  (cool) Hector [ Tue Aug 10, 2010 9:06 am ]
Post subject:  Re: Error: the file "english.movies.dat" couldn't

CraigNobbs wrote:
I know why this is happening. The developer has either hard coded the location of the Users\Public directory to the C: or is pulling the drive letter from the Windows directory.

Nope, I was getting the locations from
HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
and I was convinced it worked fine for everyone...


CraigNobbs wrote:
You should be pulling the Users\Public folder location from the registry at:
Code:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\

The String value for "Public" will point you to the correct location.

Thanks, I will try that. I can't do it today because I have something to finish, but I'll do it tomorrow.

Thank you very much for your feedback and your help !

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/