T
TomT
MS Access 2003, running on Vista Ultimate sp1
I'm trying to simply copy a file from one location to another, and get a
runtime error 70: Permission Denied. The permissions for the file are set for
full control for all users.
Here is the sub:
Public Sub CopyFile()
Dim fs As Object
Dim isthere As Boolean
Set fs = CreateObject("Scripting.FileSystemObject")
isthere = fs.FileExists("c:\Database\Accounting\UpdateAssetMaster.bat")
If isthere = True Then
fs.CopyFile "c:\Database\Accounting\UpdateAssetMaster.bat",
"c:\database"
End If
End Sub
I can't seem to get this to work, any suggestions would be appreciated.
I'm trying to simply copy a file from one location to another, and get a
runtime error 70: Permission Denied. The permissions for the file are set for
full control for all users.
Here is the sub:
Public Sub CopyFile()
Dim fs As Object
Dim isthere As Boolean
Set fs = CreateObject("Scripting.FileSystemObject")
isthere = fs.FileExists("c:\Database\Accounting\UpdateAssetMaster.bat")
If isthere = True Then
fs.CopyFile "c:\Database\Accounting\UpdateAssetMaster.bat",
"c:\database"
End If
End Sub
I can't seem to get this to work, any suggestions would be appreciated.