dmorand 0 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? Share this post Link to post Share on other sites
tankmann 0 Posted October 17, 2007 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 24 Posted October 17, 2007 FileMove ( "source", "dest" [, flag] ) Share this post Link to post Share on other sites
dmorand 0 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? Share this post Link to post Share on other sites
dabus 0 Posted October 17, 2007 *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 0 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!! Share this post Link to post Share on other sites