Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do you do a FileCopy?

0 views
Skip to first unread message

Daniel Howden

unread,
Sep 26, 1997, 3:00:00 AM9/26/97
to

How can I copy files from one location to another?

Daniel.

Hans-Gerd Theunissen

unread,
Sep 26, 1997, 3:00:00 AM9/26/97
to

Daniel Howden wrote:
>
> How can I copy files from one location to another?
>
> Daniel.

For example 'Shell "Copy FromFile ToFile" '
or:

Open InFile$ For Binary Access Read Shared as #1
Open OutFile$ For Binary Access Read Write Lock Read Write as #2
Long&=Lof(1)
A$=Space$(8192)
For I=1 to Long&\8192
Get #1,,A$
Put #2,,A$
Next
A$=Space$(Long& Mod 8192)
If Len(A$)>0 Then
Get #1,,A$
Put #2,,A$
End If
Close #1
Close #2

0 new messages