Re: Need explanation of DOS Copy command


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jim Guerber on January 21, 2005 at 13:19:17:

In Reply to: Need explanation of DOS Copy command posted by Stephen Auerbach on January 21, 2005 at 07:53:51:

Here is a simple program

!//IB// Opt(D) ! Debug
length 2 & local ax$ bx$ cx$ dx$ shandle$ dhandle$
length 80 & local sfile$ dfile$

clear
print (et)

! here obtain handles to two files

! here lseek to whatever starting position within the files that you desire

! here copy shandle from whatever position it is at to dhandle at whatever position it is at
! this will overwrite the destination file with whatever is in the source file
! from the current lseek position to the end of file.
AX$ = '@FFFA@'
bx$ = '@0001@'
cx$ = shandle$
dx$ = dhandle$
dosms(ax$,bx$,cx$,dx$)

DONE:
print 'done' & wait
stop



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]