Jump to content
Sign in to follow this  
dmorand

Renaming files?

Recommended Posts

dmorand

I've looked through the functions on the AutoIt site but don't see any function for renaming files. I wrote a script which runs a m$ access macro which runs a bunch of reports and exports them to pdf's. I then need to rename those files so that I can import them into another system correctly. How can I achieve this?

Share this post


Link to post
Share on other sites
tankmann

Just copy the files with the new name and delete the old ones afterwards.

Share this post


Link to post
Share on other sites
rasim

FileMove ( "source", "dest" [, flag] )

Share this post


Link to post
Share on other sites
dmorand

FileMove ( "source", "dest" [, flag] )
I know how to move or copy the files, but I need to rename the actual filename. How would I go about doing that?

Share this post


Link to post
Share on other sites
dabus

*cough*

FileMove ( "C:\old.dat", "C:\new.dat" )

will rename the old.dat to new.dat...

Share this post


Link to post
Share on other sites
dmorand

*cough*

FileMove ( "C:\old.dat", "C:\new.dat" )

will rename the old.dat to new.dat...

Ahhh, wow, I'm a moron. Thanks!!

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  

×