Hello all,
I'm very new to VB, and am basically teaching it to myself, so please be patient!
I am trying to use the CopyFile statment to copy a file using vb on an asp webpage, but I keep getting a "Path not found" error. As far as I know, the path is correct...here is my code:
<%
'Practice try at backing up files automatically
Set oFileSysObj = CreateObject("Scripting.FileSystemObject")
oFileSysObj.CopyFile "H:\repair\Results.mdb", "\\lnac10\svol002\Commons\AllAccess\Repair\Results.mdb", TRUE
Set oFileSysObj = nothing
%>
If there is anything apparently wrong with this code, please let me know! Thanks in advance.
I'm very new to VB, and am basically teaching it to myself, so please be patient!
I am trying to use the CopyFile statment to copy a file using vb on an asp webpage, but I keep getting a "Path not found" error. As far as I know, the path is correct...here is my code:
<%
'Practice try at backing up files automatically
Set oFileSysObj = CreateObject("Scripting.FileSystemObject")
oFileSysObj.CopyFile "H:\repair\Results.mdb", "\\lnac10\svol002\Commons\AllAccess\Repair\Results.mdb", TRUE
Set oFileSysObj = nothing
%>
If there is anything apparently wrong with this code, please let me know! Thanks in advance.