Necromorph Posted October 25, 2010 Share Posted October 25, 2010 i was wondering if there was a built in function to change a file name, i have been doing it but it seems redundant how i do it like this: $hFileRead = FileRead($hFile) $hFileOpen = FileOpen($hNewFile, 1) FileWrite($hFileOpen, $hFileRead) FileClose($hFileOpen) FileDelete($hFile) im just hoping for like: FileChangeName($sOldFileName, $sNewFileName) it seems like there would be a better way to do then to create a new file, copy the contents of the old file, then close the new file, then delete the old file. thanks for any input. Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 25, 2010 Share Posted October 25, 2010 FileMove(). See help file. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Necromorph Posted October 25, 2010 Author Share Posted October 25, 2010 i did look, sorry i missed that, very sorry. thanks though. 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