Re: XCopy and Vista and Relative Paths



Yes, you still have to add NTFS permissions. Vista operates under the least privileged user model and will assume that you should not write to sensitive folders unless the user is explicitly granted permissions.

To use command line programs "as administrator" including registering ActiveX controls, run cmd.exe as administrator. I pinned the "Visual Studio 2005 Command Prompt" shortcut to my start menu for this reason.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com



"BartMan" <MaskProg@xxxxxxxxxxxxxxxx> wrote in message news:61D38DA5-6B69-4C30-B7E0-FE55FA1CDFE0@xxxxxxxxxxxxx:

> Try looking for your myassembly.dll file in this folder:
> C:\Users\[username]\AppData\Local\VirtualStore\Program Files
>
> If the file exists, then "Run as administrator" is not taking effect
> when you run your batch file. By default, the Vista does not allow
> non-administrators to write to the Program Files folder. You can change
> this behavior by explicitly adding the user to the NTFS permissions of
> the affected folder.

Hello Bryan,

I made my user have administrative rights, do I still have to add NTFS
permissions for the folder?

Another question is that I can't seem to register any ActiveX controls which
worked on Windows XP. I assume there is a security setting for that as well,
but I am not sure where to look for it?

Thanks for your help!

.



Relevant Pages

  • Re: Lockdown
    ... There are a couple things you can do assuming users do not have administrator rights. ... member] deny ntfs permissions or not having any allow permissions to a application ... folder or file you can prevent the user from running that application or saving to a ... To restrict users to a certain website, you need to have your firewall ...
    (microsoft.public.win2000.security)
  • Re: Mapped Drives and VB6 on Vista
    ... administrator where possible. ... I have shared a local folder and mapped it as my Y:\ drive; ... Is the problem with Vista? ... I've encountered this problem with installation ...
    (microsoft.public.vb.general.discussion)
  • Re: Can not create a new file with File.Create -- throws exception: Access Denied
    ... difficult to do this right now (and I'm really suspecting Vista). ... It will be a general logging location. ... Keep in mind that "administrator" is just ... The sFileStoreLocation is pointing to a new folder that I created, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XCopy and Vista and Relative Paths
    ... then "Run as administrator" is not taking effect when you run your batch file. ... the Vista does not allow non-administrators to write to the Program Files folder. ... I am trying to test some of our .Net apps from framework 2.0 on a Windows ...
    (microsoft.public.dotnet.distributed_apps)
  • Q: Mapped Drives and VB6 on Vista
    ... administrator where possible. ... I have shared a local folder and mapped it as my Y:\ drive; ... for another file that contains environment type variables. ... Is the problem with Vista? ...
    (microsoft.public.vb.general.discussion)

Loading