Sign in to follow this  
Followers 0
alan lim

Change File Name

5 posts in this topic

Hi all,

How do I change a file name ?

Example aaa.exe to bbb.exe

Thanks

Share this post


Link to post
Share on other sites



Thanks for your repied.

I don't want to move the file. I want to keep the file. Something like copy command but it will rename the original file name.

Share this post


Link to post
Share on other sites

think of it like moving the filename only.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Yes, It works the way as linux "mv" to rename a file.

FileCopy("c:\temp\123.doc","c:\temp\456.doc",1) ---> to keep existing file and copy to another destination but rename the file

Edited by dkwokgs

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