home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1993 #2
/
Image.iso
/
clipper
/
fcopy.zip
/
COPYTEST.PRG
< prev
next >
Wrap
Text File
|
1993-08-04
|
819b
|
29 lines
/*
Tested under clipper 5.2 only
Compile with /n
Demo to show how code blocks can be evaluated from a C function.
This demo just copies a source file to a destination file and
Displays the bytes copied.
Test With Clipper 5.2 only
Copyright (c) Peter Kulek Aug 1993
Compuserve ID : 100140,1220
Specialising in Data Driven Object Oriented Applications for EIS & MIS
use from command line
C:\>COPYTEST Source_File_With_Path_&_Ext Dest_File_With_Path_&_Ext
*/
function main(cSource,cDest)
local block := {|x|devpos(24,00),devout('Bytes Copied '+str(x))}
cSource := if(valtype(cSource)='C',cSource,'copytest.exe')
cDest := if(valtype(cDest) ='C',cDest ,'test.exe')
cls
f_copy(cSource,cDest,block)
return(NIL)