Sign in to follow this  
Followers 0
CalBoy

Renaming script and counting in

2 posts in this topic

Hi guys.

I just need a hand with a quick renaming script.

The script that I am looking at creating is one that renaming any type of file.

As an example we will use tv shows.

What happens is that the user inputs a series name and then the script finds all of the names of the files in a directory (wheather this be all at once or one at a time it doesn't matter) once this is done the script counts in five characters to dodge the characters at the front writes the series name that the user input earlier and then the final parts of the filename. Is this possible? I thought about writing the filename to a array but then lost my way :/. Any help with this would be great! If I didn't explain myself well enough then please let me know and I will try and reexplain!

Thanks in advance,

CalBoy

Share this post


Link to post
Share on other sites



You search files with FileFindFirstFile and FileFindNextFile. You rename files with FileMove (because there is no FileRename) and you can do string operations with things like; StringInStr, StringTrimLeft, StringLeft, StringTrimRight, etc.

See your free copy of the AutoIt™ help file™ for more information. And please do post again if you have any specific questions about the code that you have written, preferably with an example of what the problem is.

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