Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Nov : CreateDir access denied on Vista
| Subject: | CreateDir access denied on Vista |
| Posted by: | "David Marcus" (davidmarc..@alumdotmit.edu) |
| Date: | Fri, 16 Nov 2007 17:55:36 |
I'm using Delphi/BDS 2006. I have Vista Home Premium. Until today, I
could use CreateDir without problem. Now, if I run
program Test;
uses
SysUtils;
begin
writeln( CreateDir( 'Foo' ) );
writeln( SysErrorMessage( getlasterror ) );
end.
I get
C:\Mine\Test>test
FALSE
Access is denied
I installed some updates to Vista via Windows Update yesterday. I
assume they are the cause of the problem (since I don't think I've
done anything else that could be the cause). I tried using system
restore to go back. When this didn't help, I undid the restore, and
tried uninstalling the updates. Still no good. I also had problems
with Windows saying some of my exe files were not properly signed and
refusing to open chm files (wth the message "navigation canceled"). I
fixed the signing problem using a registry change I found on the Web.
The registry change combined with reinstalling the chm files fixed the
chm problem.
My user account is an administrator account. I have UAC turned off.
I'm the owner of the folder and the test.exe file and the permissions
say I have full control. If I open a command prompt, I can use mkdir
to create the folder without problem.
I could upgrade to Delphi 2007, if that would fix the problem. I've
just been waiting to upgrade until I have more time. However, the apps
compiled with BDS 2006 were working fine until today.
Any help would be appreciated.
--
David Marcus