View Single Post
Old 09-25-2008   #1 (permalink)
Philip Tattersall


 
 

Copy file to Document and Settings folder permission problem


I am trying to copy a file from a location on a server into the
following directory on local pc's
C:\Documents and Settings\All Users\Application Data

I can copy the file with no trouble to c:\Documents and Settings.
However I get a permission denied error code 800a0046 message and the
script fails when trying o copy to
C:\Documents and Settings\All Users\Application Data.

The code I'm using is below. Any suggestions would be much appreciated.

Dim FSO

Set FSO = CreateObject("Scripting.FileSystemObject")

FSO.CopyFile "z:\scripts\test.txt", "C:\Documents and Settings\All
Users\Application Data"

*** Sent via Developersdex http://www.developersdex.com ***
My System SpecsSystem Spec