Code to rename a file ?
#1

I'm searching for a code to rename a file!
Reply
#2

By natives you can't.

You must read whatever is on the file (keeping it on the memory), deleting said file, recreating it with the new name and then write whatever that was stored when you read it.

That is what basically most file processing systems do with their files.
Reply
#3

I have a big file, it may bug or something, it ll not be fast and safe !
Reply
#4

You can rename files using this plugin:
https://sampforum.blast.hk/showthread.php?tid=92246

Use the move file function and keep the destination with the same directory with a different file name.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)