idle Posted January 2, 2004 Share Posted January 2, 2004 Trying to execute small script to rename files from lowercase to uppercase. The script finds the filename and converst it to uppercase just fine, but then fails to rename the file. It works if I copy the files to a new dir, but when the files exists in that dir (in lowercase letters), it fails too. $name = FileFindFirstFile("*.ted") $newName = StringUpper($name) MsgBox(0,"msg",$newName) FileCopy($name, $newName, 1) Link to comment Share on other sites More sharing options...
Valik Posted January 2, 2004 Share Posted January 2, 2004 Use FileMove() to rename files. Link to comment Share on other sites More sharing options...
idle Posted January 2, 2004 Author Share Posted January 2, 2004 Use FileMove() to rename files.Heeey, works. Thanx.Skipped the filemove function as it is not able to overwrite files, but apparently it can if the filenames are different uppercase lowercase. 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