Access problem on Vista during FileSystem.MoveDirectory operation

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
L

Lloyd Sheen

I am so confused and PO'ed at Vista. I have full access rights to the
folders or is it Directories (MS please use just one term for one object).
So if I run the program and thru code attempt the FileSystem.MoveDirectory
it will ask me for permission (which I give) and then seemingly ignore my
Ok.

I can do the same using Explorer without a prompt or a problem. If I run
the program as Admin again no problem. Is there a way to do that thru VS
2008? I guess I need to know what userid is being used when I run either
thru VS 2008 or the executable created by VS 2008. If I run as Admin I can
then not do drag and drop to the app.

Thanks
Lloyd Sheen

MS WHY WHY WHY????
ITS MY SYSTEM, MY FILES, MY OK
 
Lloyd said:
I am so confused and PO'ed at Vista. I have full access rights to the
folders or is it Directories (MS please use just one term for one
object). So if I run the program and thru code attempt the
FileSystem.MoveDirectory it will ask me for permission (which I give)
and then seemingly ignore my Ok.

I can do the same using Explorer without a prompt or a problem. If I
run the program as Admin again no problem. Is there a way to do that
thru VS 2008? I guess I need to know what userid is being used when I
run either thru VS 2008 or the executable created by VS 2008. If I run
as Admin I can then not do drag and drop to the app.

Thanks
Lloyd Sheen

MS WHY WHY WHY????
ITS MY SYSTEM, MY FILES, MY OK

(Sorry if this duplicates my previous post has not shown.)

1. Are you trapping any exceptions when you call MoveDirectory?
2. What folder do you try to move, and to where?
3. Does your program possibly open a file in the directory that you are
trying to move?
 
Family Tree Mike said:
(Sorry if this duplicates my previous post has not shown.)

1. Are you trapping any exceptions when you call MoveDirectory?
2. What folder do you try to move, and to where?
3. Does your program possibly open a file in the directory that you are
trying to move?

Thanks for the reply. The problem is that I have an image on the window and
that folder is being moved. I have tried all sorts of things to "free" the
file but have resorted to a copy , and the creation of a fixup things file
that is used on app startup. I have seen lots of homemade remedies for the
this problem but none of them worked.

LS
 
Back
Top