dmorand Posted October 17, 2007 Share 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? Link to comment Share on other sites More sharing options...
tankmann Posted October 17, 2007 Share Posted October 17, 2007 Just copy the files with the new name and delete the old ones afterwards. Link to comment Share on other sites More sharing options...
rasim Posted October 17, 2007 Share Posted October 17, 2007 FileMove ( "source", "dest" [, flag] ) Link to comment Share on other sites More sharing options...
dmorand Posted October 17, 2007 Author Share 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? Link to comment Share on other sites More sharing options...
dabus Posted October 17, 2007 Share Posted October 17, 2007 *cough*FileMove ( "C:\old.dat", "C:\new.dat" )will rename the old.dat to new.dat... Link to comment Share on other sites More sharing options...
dmorand Posted October 17, 2007 Author Share 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!! 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