If filename contains certain characters

Discuss RoboTask here
Post Reply
Prem
Posts: 35
Joined: Fri Sep 30, 2005 2:01 am
Location: Netherlands

If filename contains certain characters

Post by Prem »

I need to copy files to another location if they contain certain characters in their filename.
As I understood, for this I need Basic. Can someone please suggest a simple basic script for the above purpose?
thanks
Prem
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

If filename contains certain characters

Post by Oleg »

see FileCopy function in Basic help

Sub Main
   FileCopy "C:\AUTOEXEC.BAT", "C:\AUTOEXEC.BAK"
End Sub

Or

Sub Main
    FileCopy("C:\AUTOEXEC.BAT", "C:\AUTOEXEC.BAK")
End Sub
Last edited by Oleg on Tue Nov 20, 2007 9:37 am, edited 1 time in total.
Prem
Posts: 35
Joined: Fri Sep 30, 2005 2:01 am
Location: Netherlands

If filename contains certain characters

Post by Prem »

Thank you Oleg.
Post Reply