Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Renaming and file extensions
#5
Function FileRenameNoExt
Code:
Copy      Help
;/
function $oldFilePathName $newNameWithoutExt

;Renames file, leaving same extension.

;oldFilePathName - full path of existing file.
;newNameWithoutExt - new file name, without path and without extension.

;EXAMPLE
;FileRenameNoExt "$desktop$\test.txt" "test2"


ren* oldFilePathName _s.from(newNameWithoutExt PathFindExtension(oldFilePathName))
err end _error


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)