Then just a File.Delete of the old file to replicate a move, unless the intention is to keep the old files..?
Yes. As i stated that in Post #2
Agreed, but I posted the actual code to do this, which the OP asked for after your post
Dim Success as boolean
Success=RenameFile(File.DirRootExternal & "/path/oldfilename.txt", File.DirRootExternal & "/path/newfilename.txt")
Sub RenameFile(OriginalFileName As String, NewFileName As String) As Boolean
Dim Result As Int
Dim StdOut, StdErr As StringBuilder
StdOut.Initialize
StdErr.Initialize
Dim Ph As Phone
Result = Ph.Shell("mv " & OriginalFileName & " " & NewFileName, Null, StdOut, StdErr)
If Result = 0 Then
Return True
Else
Return False
End If
End Sub
You cannot change the name of a file in DirAssets.How can I change the name of a file in assets...