From: Rakesh on
Hi,

I am trying to put some files in Program Files folder in Vista machine using
VB script but I see "Permission Denied" with Error Number: 70

Could some put some light on this.
Thanks in advance,
From: Pegasus (MVP) on

"Rakesh" <Rakesh(a)discussions.microsoft.com> wrote in message
news:16439591-F37E-45CD-B40A-C8D88CD17F1E(a)microsoft.com...
> Hi,
>
> I am trying to put some files in Program Files folder in Vista machine
> using
> VB script but I see "Permission Denied" with Error Number: 70
>
> Could some put some light on this.
> Thanks in advance,

- What is your script?
- Can you copy the files using Windows Explorer?


From: mayayana on
Program Files is a restricted folder on Vista.
If you want access then don't install to Program
Files...or don't use Vista.
>
> I am trying to put some files in Program Files folder in Vista machine
using
> VB script but I see "Permission Denied" with Error Number: 70
>
> Could some put some light on this.
> Thanks in advance,


From: PaulM on
You need FULL Administrator Privilege to run a vbscript. You will get
access denied all the time.
If you have On Error Resume Next, the script will run, but will not edit the
registry.

--
-------------------------------------------------------------------------------------
www.paulsxp.com
www.paulsxp.com/forum
www.supportspace.com/home/affiliates.s2?aiu=paulm
------------------------------------------------------------------------------------

"mayayana" <mayaXXyana(a)rcXXn.com> wrote in message
news:#4086MY3IHA.3624(a)TK2MSFTNGP05.phx.gbl...
> Program Files is a restricted folder on Vista.
> If you want access then don't install to Program
> Files...or don't use Vista.
>>
>> I am trying to put some files in Program Files folder in Vista machine
> using
>> VB script but I see "Permission Denied" with Error Number: 70
>>
>> Could some put some light on this.
>> Thanks in advance,
>
>