Jump to content

Recommended Posts

Posted

sorry, i am a newby but :

how do you rename a file ?

regards, Erik

Posted

sorry found it:

FileMove("C:\test.txt", "C:\test.txt.old")

or is there another way ?

Posted

you can make a batch file, and use the dos command "ren"

but what for, filemove works great

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

i guess if u wanted u could use FileCopy and change the destination and then delete the old file eg

#include <file.au3>
FileCopy("C:\TestOne.txt", "C:\TestTwo.txt")
FileDelete ("C:\TestOne.txt")

hope that helps

qq

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...