CopyFile Example

 

The following example copies the file named 鍍est1.txt to 鍍est2.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 登netemp directory into the 渡exttemp directory. Note that the 渡exttemp 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