CopyFile Example

 

The following example copies the file named ôtest1.txtö to ôtest2.txt.ö

 

Sub Main

 

 'you must have a file called c:\test1.txt created to use this

 Action.CopyFile("c:\test1.txt", "c:\test2.txt") 

 

End Sub

 

 

This example will copy all the files from the ôonetempö directory into the ônexttempö directory. Note that the ônexttempö directory must exist for the action to work correctly.

 

Sub Main

  

 'you must have directories with files in them called c:\onetemp and c:\nexttemp

 Action.CopyFile ("c:\onetemp\*.*", "c:\nexttemp\*.*") 

 

End Sub