Sign in to follow this  
Followers 0
PantZ4

File Rename?

7 posts in this topic

Can you rename a file?

I looked in the help file but I only finds FileRead or FileRecycle

Thank you :lmao:

Share this post


Link to post
Share on other sites



FileMove

But this will move the file, not rename it :lmao:

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 :lmao:

"Because AutoIt lacks a "FileRename" function, use FileMove to rename a file!"

Edited by Mr. Zero

Share this post


Link to post
Share on other sites

:lmao::ph34r::geek: 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

Share this post


Link to post
Share on other sites

But this will move the file, not rename it :lmao:

FileMove("C:\Temp\SciTE-temp.au3", "C:\Temp\NEW-NAME.au3")

It will rename the file!

:-)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0