I rewrote this script as a function, currently it will only work on mass files of the same extension I don't have single file functionality programmed in yet.
: : E x a m p l e : :
#include <FileRename.au3>
; FileRename(iflag, "extension", "source", "destination")
$ireturn = FileRename(0, "txt", "Example\Source\", "Example\Destination\")
MsgBox(0, "Return", $ireturn)
;__________________________________________________________
; F L A G S
; 0 = all files
; 1 = single file
;__________________________________________________________
;__________________________________________________________
; R E T U R N S
; 0 = incorrect $iflag
; 1 = invalid extension
; 2 = source folder/path does not exist
; 3 = destination folder/path does not exist
; 4 = no files found
; 5 = unable to get file info
; Success = No errors
; Unknown Error = Script finished but there was an error
;__________________________________________________________