dmorand Posted October 17, 2007 Posted October 17, 2007 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?
tankmann Posted October 17, 2007 Posted October 17, 2007 Just copy the files with the new name and delete the old ones afterwards.
dmorand Posted October 17, 2007 Author Posted October 17, 2007 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?
dabus Posted October 17, 2007 Posted October 17, 2007 *cough*FileMove ( "C:\old.dat", "C:\new.dat" )will rename the old.dat to new.dat...
dmorand Posted October 17, 2007 Author Posted October 17, 2007 *cough* FileMove ( "C:\old.dat", "C:\new.dat" ) will rename the old.dat to new.dat... Ahhh, wow, I'm a moron. Thanks!!
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