Hello,
I would like to be able to rename a file in [TMP]. I know I can do it with renameFile(PATH,PATH1)
Except the file name is random, let's say : IMPORTME2024 and I want to rename it IMPORTME
I tried a lot of stuff like this for exemple but it doesn't work and I'm really out of ideas.
Local Integer SUCCESS Local Char PATH(250) PATH=filpath("tmp", "IMPORTME%", "txt") PATH1=filpath("tmp", "IMPORTME", "txt") SUCCESS=renameFile(PATH,PATH1) If SUCCESS=0 Infbox "OK" Endif
Is it even possible to get the file name ? I can get the path and properties thanks to filinfo but I can't find anything online on how to get the file name.
Thanks