PC Review


Reply
Thread Tools Rate Thread

Copy / Move File

 
 
Gary
Guest
Posts: n/a
 
      4th Sep 2003
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


 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      4th Sep 2003
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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share file: Move or Copy playwin Windows XP General 6 8th Feb 2006 06:57 PM
Cannot use the Move/Copy button to move or to copy between private and public folders in Outlook Web Access MH Microsoft Outlook Discussion 1 26th May 2005 11:00 PM
Re: Move or Copy file Tom Ogilvy Microsoft Excel Programming 2 14th Aug 2003 05:48 AM
Re: Move or Copy file steve Microsoft Excel Programming 0 12th Aug 2003 09:24 PM
Re: Move or Copy file Michael Bond Microsoft Excel Programming 0 12th Aug 2003 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:27 AM.