Page 1 of 1

If filename contains certain characters

Posted: Tue Nov 20, 2007 5:22 am
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

If filename contains certain characters

Posted: Tue Nov 20, 2007 5:37 am
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

If filename contains certain characters

Posted: Tue Nov 20, 2007 3:03 pm
by Prem
Thank you Oleg.