Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread ElevateDB Error #600
Tue, Mar 31 2009 9:54 PMPermanent Link

Phil Read
Hi Tim & Team!

This is something I'm not doing right, but I receive an Error when
trying to open a database.

ElevateDB Error #600 File manager error (Cannot create file C:\Documents
and Settings\user\My
Documents\RADStudio\Projects\EventoryServer\EDBDatabase.EDBCat (OS
Error: The system cannot find the path specified.

The path does exist, I'm using VISTA and other databases work.

Thanks,

Phil.
Wed, Apr 1 2009 1:18 AMPermanent Link

Richard Harding
>>ElevateDB Error #600 File manager error (Cannot create file C:\Documents and
Settings\user\My Documents\RADStudio\Projects EventoryServer\EDBDatabase.EDBCat (OS
>>Error: The system cannot find the path specified.

>>The path does exist, I'm using VISTA and other databases work.

Phil,


The folder XP folder C:\Documents and Settings\<user>\My Documents becomes
C:\users\<user>\Documents in Vista.  

You should use the function SHGetFolderPath to determine the correct folder path for the
system special folders which is different for Vista and XP.


--------------------------------------------------------------------------------
For example,

 SHGetFolderPath(0, CSIDL or CSIDL_FLAG_CREATE, 0, SHGFP_TYPE_CURRENT, @path[0]);

where the CSIDL constants are defined in the file ShlObj.pas.


For example,

const
 SHFolderDll = 'SHFolder.dll';
 CSIDL_PERSONAL =              $0005; { My Documents }
 CSIDL_APPDATA =               $001A; { <user name>\Application Data }
 CSIDL_COMMON_APPDATA =        $0023; { All Users\Application Data }
 CSIDL_COMMON_DOCUMENTS =      $002e; { All Users\Documents }
 CSIDL_FLAG_CREATE =           $8000; //combine with CSIDL_ value to force file create
 SHGFP_TYPE_CURRENT =          0;


The function SHGetFolderPath is defined in the file SHFolder.pas.

function SHGetFolderPath; external SHFolderDll name 'SHGetFolderPathA';

-------------------------------------------------------

The following article explains what is going on in much more detail which should be helpful.


http://www.windowsecurity.com/articles/Protecting-System-Files-UAC-Virtualization-Part1.html


Richard Harding.
Wed, Apr 1 2009 1:47 AMPermanent Link

Phil Read
Much appreciated Richard, I'm sure what you've said is 100% right, just
seemed strange that the path was defined using the ElevateDB Manager
utility so maybe it's doing something weird to the path.

Thanks,

Phil.


Richard Harding wrote:
>>> ElevateDB Error #600 File manager error (Cannot create file C:\Documents and
> Settings\user\My Documents\RADStudio\Projects EventoryServer\EDBDatabase.EDBCat (OS
>>> Error: The system cannot find the path specified.
>
>>> The path does exist, I'm using VISTA and other databases work.
>
> Phil,
>
>
> The folder XP folder C:\Documents and Settings\<user>\My Documents becomes
> C:\users\<user>\Documents in Vista.  
>
> You should use the function SHGetFolderPath to determine the correct folder path for the
> system special folders which is different for Vista and XP.
>
>
> --------------------------------------------------------------------------------
> For example,
>
>   SHGetFolderPath(0, CSIDL or CSIDL_FLAG_CREATE, 0, SHGFP_TYPE_CURRENT, @path[0]);
>
> where the CSIDL constants are defined in the file ShlObj.pas.
>
>
> For example,
>
> const
>   SHFolderDll = 'SHFolder.dll';
>   CSIDL_PERSONAL =              $0005; { My Documents }
>   CSIDL_APPDATA =               $001A; { <user name>\Application Data }
>   CSIDL_COMMON_APPDATA =        $0023; { All Users\Application Data }
>   CSIDL_COMMON_DOCUMENTS =      $002e; { All Users\Documents }
>   CSIDL_FLAG_CREATE =           $8000; //combine with CSIDL_ value to force file create
>   SHGFP_TYPE_CURRENT =          0;
>
>
> The function SHGetFolderPath is defined in the file SHFolder.pas.
>
> function SHGetFolderPath; external SHFolderDll name 'SHGetFolderPathA';
>
> -------------------------------------------------------
>
> The following article explains what is going on in much more detail which should be helpful.
>
>
> http://www.windowsecurity.com/articles/Protecting-System-Files-UAC-Virtualization-Part1.html
>
>
> Richard Harding.
>
Thu, Apr 2 2009 3:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Phil,

<< This is something I'm not doing right, but I receive an Error when trying
to open a database.

ElevateDB Error #600 File manager error (Cannot create file C:\Documents
and Settings\user\My
Documents\RADStudio\Projects\EventoryServer\EDBDatabase.EDBCat (OS
Error: The system cannot find the path specified.

The path does exist, I'm using VISTA and other databases work. >>

Can the current user under which you're running "see" that path ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Image