Thanks,
Boris Zakharin
> I am writing a program that manipulates Opera's contacts. In the past I
> could be sure that I could append the name "contacts.adr" to the
> HKEY_CURRENT_USER\SOFTWARE\Opera Software\Last Directory entry.
That would not have worked on my system, as I created separate profiles
myself (with a little help from Phil's Opera Profile Maker).
> With Opera 7,
> it seems to support multiple profiles on Windows XP, but how can I be
> absolutely sure where contacts.adr is located regardless of the system?
> Is there a registry entry or ini file for this?
You can't be *really* sure which is the active Opera program (maybe a beta
test version is the last installed one). But in the Opera install
directory, you'll find the file OperaDef6.ini. In this file, look for this
section and line:
[System]
Reg Version=9
Multi User=0/1
... where 0=single-user and 1=multi-user.
--
If you don't like having choices | Rijk van Geijtenbeek
made for you, you should start | Documentation & QA
making your own. - Neal Stephenson | mailto:ri...@opera.com
"Rijk van Geijtenbeek" <ri...@opera.com> wrote in message news:oprjmt0v...@news.opera.com...
> But Opera itself must somehow determine where the file is located.
> Assuming Multi User is 1, is there always an exact place where the file
> is stored? How does Opera know where to look in your example where a
> third-party tool is used to
> move the files?
I used to start from shortcuts with a different opera6.ini file specified
on the command line, one for each user, pointing to a different opera6.ini
in a different directory.
With Opera 7 in multi-user mode, you go to
C:\Windows\Profiles\<username>\Application Data\Opera\Opera7\Profile\ #
At least on Windows 98/ME - I know the location of user data is a bit
different in WinNT or WinXP.
The 'Opera7' part in the path is the name of the installation directory. If
you choose to install Opera 7 in C:\Program files\Opera700, the path to the
user data becomes C:\Windows\Profiles\<username>\Application
Data\Opera\Opera700\Profile\
"Rijk van Geijtenbeek" <ri...@opera.com> wrote in message news:oprjphfw...@news.opera.com...
> I'm using XP and I have an environment variable called APPDATA which
> points to the current "Application Data" folder. Is that variable
> available on Win9x?
I'm not a windows expert, but I assume it is.
> I'm using XP and I have an environment variable called APPDATA which
> points to the current "Application Data" folder. Is that variable
> available on Win9x?
I'm not a windows expert, but I assume it is.
--
"Rijk van Geijtenbeek" <ri...@opera.com> wrote in message news:oprjphfw...@news.opera.com...
This is a simple Delphi function I use in my applications:
function GetUserProfilePath:string;
var
PidlDir:PItemIDList;
begin
SetLength(Result,MAX_PATH);
SHGetSpecialFolderLocation(0,CSIDL_APPDATA,PidlDir);
SHGetPathFromIDList(PidlDir,PChar(Result));
SetLength(Result,StrLen(PChar(Result)));
end;
--
Andrzej Olaczek
Opera Search.ini Editor
http://www.operapl.prv.pl/en/