Copy / Move File

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

HI,
I wish to write a program which copies / moves a file available in Computer
A present in domain X to Computer B present in domain Y (assuming user has
permission to both the domains and domain X and domain Y are connected
through network). Does .NET provide a direct function call or do we have to
use Win 32 API CopyFile / MoveFile to execute the action.

TIA,
Gary
 
Hi Gary,
I wish to write a program which copies / moves a file available in Computer
A present in domain X to Computer B present in domain Y (assuming user has
permission to both the domains and domain X and domain Y are connected
through network). Does .NET provide a direct function call or do we have to
use Win 32 API CopyFile / MoveFile to execute the action.
You mean a program like this?
\\\\\\\\\\\
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.OpenFileDialog1.ShowDialog()
Me.SaveFileDialog1.ShowDialog()
System.IO.File.Move(Me.OpenFileDialog1.FileName,
Me.SaveFileDialog1.FileName)
End Sub
///////////
I can not see what is the extra dimension from the 2 domains, I think that
when the places are real connected to the client this works.
That is if you can see the directories in Explorer. But maybe I d'nt see
something.
Cor
 
Back
Top