E
eestimpson
I'm having a "freakish" problem trying to create an executable in a
particular folder of my local c: drive. Using a c# compiler I was
trying to build an executable and got the error "access denied." I
started by looking at the folder properties and saw that the read only
flag was set for the folder. I tried clearing that, but without effect
(I later found that this is a problem in Windows XP; it always shows
that flag when you view a folder's properties).
The more I investigated the problem, the stranger it got. First, it
makes no difference what I try naming the executable, or where I try
making it from. The result is always the same, "Access Denied." For
example, I've tried creating a text file and renaming it to t.exe,
copying from the console at a command prompt, copying any .exe from
another folder, and nothing works.
I've even tried copying the folder to another folder. Here, what's
interesting is that by itself, that works. But there's a twist. Here
is the relative path of the folder in which I need to create the .exe
file:
C:\...\src\Main\StartUp\Project\obj\Release
I can't create an executable until I go back to:
C:\...\src\Main\StartUp
If I copy the Debug folder to a new location, I can create an .exe
file. If I copy obj or Project, the same. But if I copy StartUp, I
can't create an .exe in any of it's subfolders (although in the StartUp
folder itself it is no problem).
A couple of final points. The folders were created by extracting a Zip
file using WinZip. I get an error when I try extracting the files from
WinZip saying that "Access Denied" when it's trying to write an
executable to the C:\...\src\Main\StartUp\Project\obj\Release folder.
If I extract to a new folder, it does the same thing. If I use another
tool like 7-Zip, it does the same.
particular folder of my local c: drive. Using a c# compiler I was
trying to build an executable and got the error "access denied." I
started by looking at the folder properties and saw that the read only
flag was set for the folder. I tried clearing that, but without effect
(I later found that this is a problem in Windows XP; it always shows
that flag when you view a folder's properties).
The more I investigated the problem, the stranger it got. First, it
makes no difference what I try naming the executable, or where I try
making it from. The result is always the same, "Access Denied." For
example, I've tried creating a text file and renaming it to t.exe,
copying from the console at a command prompt, copying any .exe from
another folder, and nothing works.
I've even tried copying the folder to another folder. Here, what's
interesting is that by itself, that works. But there's a twist. Here
is the relative path of the folder in which I need to create the .exe
file:
C:\...\src\Main\StartUp\Project\obj\Release
I can't create an executable until I go back to:
C:\...\src\Main\StartUp
If I copy the Debug folder to a new location, I can create an .exe
file. If I copy obj or Project, the same. But if I copy StartUp, I
can't create an .exe in any of it's subfolders (although in the StartUp
folder itself it is no problem).
A couple of final points. The folders were created by extracting a Zip
file using WinZip. I get an error when I try extracting the files from
WinZip saying that "Access Denied" when it's trying to write an
executable to the C:\...\src\Main\StartUp\Project\obj\Release folder.
If I extract to a new folder, it does the same thing. If I use another
tool like 7-Zip, it does the same.