PantZ4 Posted October 6, 2006 Share Posted October 6, 2006 Can you rename a file? I looked in the help file but I only finds FileRead or FileRecycle Thank you Link to comment Share on other sites More sharing options...
PantZ4 Posted October 6, 2006 Author Share Posted October 6, 2006 FileMoveBut this will move the file, not rename it Link to comment Share on other sites More sharing options...
PantZ4 Posted October 6, 2006 Author Share Posted October 6, 2006 (edited) I could just run cmd and use the command: rename. But are there no commands for rename a file in autoit? EDIT: Oh sorry Larry... I didn't read the FileMove help file finished. You have right. Sorry "Because AutoIt lacks a "FileRename" function, use FileMove to rename a file!" Edited October 6, 2006 by Mr. Zero Link to comment Share on other sites More sharing options...
Xenobiologist Posted October 6, 2006 Share Posted October 6, 2006 Just trust Larry and try fileMove() same location other name.It will work. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
herewasplato Posted October 6, 2006 Share Posted October 6, 2006 But this will move the file, not rename it FileMove("C:\Temp\SciTE-temp.au3", "C:\Temp\NEW-NAME.au3")It will rename the file!:-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
cppman Posted October 6, 2006 Share Posted October 6, 2006 Then I guess it's hopless.LAr.lmfao! Miva OS Project Link to comment Share on other sites More sharing options...
herewasplato Posted October 6, 2006 Share Posted October 6, 2006 ...EDIT: Oh sorry Larry... I didn't read the FileMove help file finished. You have right. Sorry ...It has just been one of those forum days, weeks, months?: http://www.autoitscript.com/forum/index.ph...showtopic=34076 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
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