I'm using Playwright to record test videos and save them to a specific folder. You aren't able to rename these video files when they're made in Playwright, but I need file names to be date and time of recording. In AutoIt how to rename a file to the FileGetTime() return once it's added to the Playwright videos folder?
I tried FileFindFirstFile(! "2023") to find files that haven't been renamed already. Then FileGetTime() to get the string I want to rename it as. Then a FileMove() to rename file to the time while keeping it in same folder.
Consider using
_FileListToArray()instead.Use
StringRegExp($sFileName, '^\d{14}\.', $STR_REGEXPMATCH)(and/or$FC_NOOVERWRITEonFileMove()) instead.Example: