It is currently Thu Mar 28, 2024 8:47 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Error: the file "english.movies.dat" couldn't be f
PostPosted: Tue Aug 10, 2010 7:06 am 
Offline

Joined: Tue Aug 10, 2010 6:53 am
Posts: 1
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.


Top
 Profile  
 
 Post subject: Re: Error: the file "english.movies.dat" couldn't
PostPosted: Tue Aug 10, 2010 9:06 am 
Offline
User avatar

Joined: Tue Sep 27, 2005 2:28 am
Posts: 7632
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 !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2024 phpBB Group