The following example moves the file ôtest1.txtö from the c: drive to the d: drive as ôtest2.txtö
Sub Main
'you must have a file called c:\test1.txt created to use this
Action.MoveFile("c:\test1.txt", "c:\test2.txt")
End Sub
This example moves all the files in the c:\onetemp directory to the c:\nexttemp directory.
Sub Main
'you must have directories with files in them called c:\onetemp and c:\nexttemp
Action.MoveFile("c:\onetemp\*.*", "c:\nexttemp\*.*")
End Sub
Encapsulates the AutoMateÖ action under the ôFileö group, ôRename files.ö
Declaration
procedure RenameFile(OldName: OleVariant; NewName: OleVariant); safecall;
Description
The action renames the file specified in the Source parameter to the name specified in Destination. Rename does not currently support wildcards.