wolf40 Posted May 30, 2007 Posted May 30, 2007 Hello, I want to rename a file using filemove with a variable. The variable changes daily. The file will change from "foo.mp3" to "today.mp3" in the example. I have searched the forum and tried different combinations but I can't get the right syntax. $VAR = "today" FileMove("C:\foo.mp3", "C:\" $VAR & '.mp3')
Moderators big_daddy Posted May 30, 2007 Moderators Posted May 30, 2007 Try this... $VAR = "today" FileMove("C:\foo.mp3", "C:\" & $VAR & ".mp3")
wolf40 Posted May 30, 2007 Author Posted May 30, 2007 Try this... $VAR = "today" FileMove("C:\foo.mp3", "C:\" & $VAR & ".mp3") works perfect - thanks.
Gif Posted May 30, 2007 Posted May 30, 2007 works perfect - thanks.you could also chek the help file...
Moderators big_daddy Posted May 31, 2007 Moderators Posted May 31, 2007 you could also chek the help file...You could also refrain from making useless posts.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now