StripDir Strip directory from a file path StripExt Strip extension from a file path StripAll Strip directory and extension from a file path StripSlash Strip trailing slash from a file path ExtractDir Extract directory from a file path ExtractExt Extract extension from a file path CurrentDir Get Current Directory RealPath Get real, absolute path of a file path FileType Get file type FileTime Get file time FileSize Get file size FileMode Get file mode SetFileMode Set file mode CreateFile Create a file CreateDir Create a directory DeleteFile Delete a file RenameFile Renames a file CopyFile Copy a file CopyDir Copy a directory DeleteDir Delete a directory ChangeDir Change current directory ReadDir Open a directory NextFile Return next file in a directory CloseDir Close a directory LoadDir Load a directory OpenFile Open a file for input and/or output. ReadFile Open a file for input. WriteFile Open a file for output. CloseFile Closes a file stream.
a = MilliSecs()api_CopyFile ("C:\Users\noroa\Downloads\linuxmint-18.3-cinnamon-64bit.iso", "C:\Users\noroa\Downloads\test.iso",False)c = MilliSecs() - aa = MilliSecs()api_MoveFile ("C:\Users\noroa\Downloads\test.iso","C:\Users\noroa\Downloads\testmoved.iso")m = MilliSecs() - aDebugLog "Time to copy: "+cDebugLog "Time to move: "+mWaitKey()
Time to copy: 8814Time to move: 2
file$="c:\originalname"destination$="c:\newfilename"Print "Press any key to rename your file"WaitKey()CopyFile file$,destination$
;DeleteFile "c:\originalname"
Thanks for all your help guys and sorry I haven't replied until now. In the end I manually renamed 100 files by hand but I will certainly be doing something in Blitzmax in the future. I tried renaming all my files to .png and using LoadFile and SaveFile, it didn't work. Haha