Jump to content

Recommended Posts

Posted (edited)

Another way(not so good like FileMove):

RunWait(@ComSpec & " /C ren " & $file & " " & $newname, "", @SW_HIDE)
Edited by Andreik
Posted

As there is no real "FileRename" you have to Use

FileMove("oldname.txt", "newname.txt")
what if the file I want rename is the actual Script.exe and its already running

how can I rename the script.exe while its still running..??

Posted

that seems like an awful lot of code just to simply rename a file..

Out of all the functions why is ''FileRename" not in there..

Why did they leave it out for..??

Its like a basic function..??

Posted

if you use a batch script to .exe app you can rename your script.exe while its running with this simple line:

REN %~0 TEST.EXE

and it works fine..

But with AutoIt you have to copy the script to a diff name, run the new script.exe which will delete the old script.exe..

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
×
×
  • Create New...