Sign in to follow this  
Followers 0
Buzzed

renaming files

6 posts in this topic

Hi,

I'm new at this and have not plyed around yet....But all i want to do is to run a little application that would remane 3 files (file1.txt, file2.txt, file3.txt) and remane them to (anothername1.txt, anothername2.txt, anothername3.txt)...I havent seen a function that renames a file? Can somone help me?

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Try it will be help:

run("cmd.exe /c ren *.txt anothername_a%random%_.txt", "", @SW_HIDE)
Edited by Sh3llC043r

[size="5"] [/size]

Share this post


Link to post
Share on other sites

Look at FileMove()

Jos

Thanks' It not easy being a newbie but I,ll learn fast...

Now my next challenge is to creat a small application that when i run in a directory, if he specific files exist, it will automaticly change their names to a specifc new filename...Wish me luck!

Share this post


Link to post
Share on other sites

Good luck.

ps. no need to hit the report button unless there is something to report.

Jos ;)

Sorry, Newbie!

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