Jump to content
Sign in to follow this  
Guest erik

How to rename file ?

Recommended Posts

Guest erik

sorry, i am a newby but :

how do you rename a file ?

regards, Erik

Share this post


Link to post
Share on other sites
Guest erik

sorry found it:

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

or is there another way ?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...