Sign in to follow this  
Followers 0
legiom455

Copying files from one folder to another ... &changing filename

3 posts in this topic

HI all,

I have some files in a folder , named xxxf.jpg and I need to copy them to another folder, yet change the filename to xxxt.jpg.

I'm searching thru the forum, yet haven't found anything yet. Any help getting me started would be greatly appreciated.

thanks

Allen

Share this post


Link to post
Share on other sites



FileFindFirstFile ( "filename" )

FileFindNextFile ( search ) will return a file name.

StringSplit ( "string", "delimiters" [, flag ] ) using "." as a delimiter to get the filename without extension

StringTrimRight ( "string", count ) to get the "base" of the file name (xxx out of xxxf)

FileCopy using "base"&"f"&"extension" for source file and "base"&"t"&"extension" for destination file.

Job done,

You can see that I let you discover how to do this in AutoIt :P


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

Thank you, ... I can see I've got some more learning to do!!

Allen

FileFindFirstFile ( "filename" )

FileFindNextFile ( search ) will return a file name.

StringSplit ( "string", "delimiters" [, flag ] ) using "." as a delimiter to get the filename without extension

StringTrimRight ( "string", count ) to get the "base" of the file name (xxx out of xxxf)

FileCopy using "base"&"f"&"extension" for source file and "base"&"t"&"extension" for destination file.

Job done,

You can see that I let you discover how to do this in AutoIt :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0