Navigation:  Reference > Functions >

CopyFile()

Print this Topic Previous pageReturn to chapter overviewNext page

 

COPY_FILE(1,2)

 

PURPOSE

You must use this function to copy a file in Windows.

 

PARTS

 

1 f/c/eRequired - From file name.  Must be type A.

 

2 f/c/eRequired - To file name.  Must be type A.

 

RETURN TYPE - L

If the copy is complete the function returns .T., otherwise it returns .F..

 

COMMENTS

Wild card characters are not allowed in this function.  You must specify both file names explicitly.

 

EXAMPLE

define copyok type L

button.click:

copyok = copyfile('myfile.txt','myfile2.txt')

if copyok

  msg 'myfile.txt was copied to myfile2.txt'

else

msg 'error file was not copied...'

endif

ret

 


Page url: http://www.cassoftware.com/tas/manual/copyfile().htm