stephenmbell
IS-IT--Management
I have the following structure on my drive
C:\MyFolder\Myfolder1\myfile
C:\MyFolder\Myfolder2\myfile
These files are in place as a backup copy of a data file should it ever corrupt.
The structure of the datafile is changing with a new software upgrade and I have new ones. I am trying to delete the existing folder/files and replace it using a script.
I have been running into permission errors, so I have stripped the script:
dim objFSO
set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFolder("C:\MyFolder")
set objFSO = Nothing
I still get a permission denied error
For testing, I am running on my local machine, which I have admin privileges on
Any light to be shed on this????
Thanks in advance
sb
C:\MyFolder\Myfolder1\myfile
C:\MyFolder\Myfolder2\myfile
These files are in place as a backup copy of a data file should it ever corrupt.
The structure of the datafile is changing with a new software upgrade and I have new ones. I am trying to delete the existing folder/files and replace it using a script.
I have been running into permission errors, so I have stripped the script:
dim objFSO
set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFolder("C:\MyFolder")
set objFSO = Nothing
I still get a permission denied error
For testing, I am running on my local machine, which I have admin privileges on
Any light to be shed on this????
Thanks in advance
sb