Re: Access problem on Vista during FileSystem.MoveDirectory operation




"Family Tree Mike" <FamilyTreeMike@xxxxxxxxxxxxxxxx> wrote in message news:uj5%23lABNKHA.4028@xxxxxxxxxxxxxxxxxxxxxxx
Lloyd Sheen wrote:
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?


--
Mike

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

.



Relevant Pages

  • Re: PF Admin tool & Administrative Rights
    ... Path in that server!! ... Actually I am testing with our lab server and the Ex admin path is ... I successfully received full information from the folder (size, ... If I add the same account as client member as owner, ...
    (microsoft.public.exchange2000.development)
  • Re: Stashing Temp Files Under Documents and SettingsAll Users?
    ... I just use the folder where the MDE resides. ... the Windows and Program Files folders) -- ... running as admin. ... install your Access front ends in user-writable storage space. ...
    (comp.databases.ms-access)
  • Re: Program requires admin rights
    ... > We have a program that requires admin rights to run correctly. ... The vendor is ... Start Menu folder and Desktop folder shortcuts from the user profile ... limited accounts, you can fix it to allow limited users to access the ...
    (microsoft.public.windowsxp.general)
  • Re: Found it - Lost my quick launch
    ... Since the copied folder structure was incomplete, ... >>> What were the local admin tasks??? ... >>> admin login, just not for mine, it would seem to me that it would be an ... >>>> Quick Launch: Gives error message, ...
    (microsoft.public.windowsxp.general)
  • Re: Ensure Directory is writable for All Users
    ... This grants admins all permissions, and most permissions to everyone else. ... CSIDL_COMMON_DOCUMENTS is not the correct folder, because my files are configuration files and should not be visible to the user. ... only users with admin rights can modify files in this folder. ... Tell the customer never to install this program into "Program Files". ...
    (microsoft.public.vc.mfc)