Dim Cfile As New Scripting.FileSystemObject
Dim str As String
Copyfile = "Success..."
On Error GoTo err:
Cfile.Copyfile "\\venus\c\geeta\test.doc", "\\prime\c-prime\", True
Set Cfile = Nothing
err:
If err.Number <> 0 Then
Copyfile = "error : " + err.Description + CStr(err.Number)
End If
Set Cfile = Nothing
this is vb code which works properly copies file test.doc from machine venus to machine prime
But when i call the same in ASP either by VB dll or directly using filesystemobjcet it gives error Permission denied
Can anybody help?
Dim str As String
Copyfile = "Success..."
On Error GoTo err:
Cfile.Copyfile "\\venus\c\geeta\test.doc", "\\prime\c-prime\", True
Set Cfile = Nothing
err:
If err.Number <> 0 Then
Copyfile = "error : " + err.Description + CStr(err.Number)
End If
Set Cfile = Nothing
this is vb code which works properly copies file test.doc from machine venus to machine prime
But when i call the same in ASP either by VB dll or directly using filesystemobjcet it gives error Permission denied
Can anybody help?