The first arg is the existing (current) name of the file.
The second arg is the new name for the file.
/* Rename a file named "MyFile" in the current directory to "MyFile2" */ InetRename("MyFile", "MyFile2")
If desired, the filename can be qualified with other directories relative to the current directory. For example, assume your current directory is "Dir1". There is a directory named Dir2 inside of Dir1. There is also a directory named Dir3 inside of Dir1. To move a file named MyFile from Dir2 to Dir3, you call:
/* Move a file named "MyFile" (in Dir1/Dir2, to Dir1/Dir3) */ InetRename("Dir2/MyFile", "Dir3/MyFile")