legiom455 Posted August 13, 2008 Share Posted August 13, 2008 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 More sharing options...
enaiman Posted August 14, 2008 Share Posted August 14, 2008 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 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 More sharing options...
legiom455 Posted August 14, 2008 Author Share Posted August 14, 2008 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now