wolf40 Posted May 30, 2007 Share 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') Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 30, 2007 Moderators Share Posted May 30, 2007 Try this... $VAR = "today" FileMove("C:\foo.mp3", "C:\" & $VAR & ".mp3") Link to comment Share on other sites More sharing options...
wolf40 Posted May 30, 2007 Author Share Posted May 30, 2007 Try this... $VAR = "today" FileMove("C:\foo.mp3", "C:\" & $VAR & ".mp3") works perfect - thanks. Link to comment Share on other sites More sharing options...
Gif Posted May 30, 2007 Share Posted May 30, 2007 works perfect - thanks.you could also chek the help file... Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 31, 2007 Moderators Share Posted May 31, 2007 you could also chek the help file...You could also refrain from making useless posts. Link to comment Share on other sites More sharing options...
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