volkerimmler Posted November 14, 2005 Posted November 14, 2005 After searching the manual and the forum, I have not been able to find any way to rename a file in autoit. Is there a way? Thank you
themax90 Posted November 14, 2005 Posted November 14, 2005 Dim $FileToRename = "C:\File.txt", $NewName = "C:\File-Log.txt" FileCopy($FileToRename, $NewName) FileDelete($FileToRename)
themax90 Posted November 14, 2005 Posted November 14, 2005 No problem, theres probably a more efficent way out there, but that will do.
randallc Posted November 14, 2005 Posted November 14, 2005 (edited) There is also a UDF that uses DOS if you don't want to copy and delete;; link from "DOScoms" in my signature;;Syntax; _RenameDOS($s_file,$s_new_file); cf "DOSRenameExample.au3" Example at that link.Best, Randall Edited November 14, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now