Jump to content

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


Recommended Posts

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

Link to comment
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 :)

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...