the_lord_mephy Posted May 30, 2005 Posted May 30, 2005 How would I rename a file say C:\Hello.mp3 to C:\Hi.mp3 My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Groumphy Posted June 1, 2005 Posted June 1, 2005 Hello, Small question ... Why not add alias with the FileMove function ? Here the code that I added has File.au3... ; Renommer un fichier ; Auteur : Groumphy ; Alias de FileMove Func _Rename($iPath, $iOldName, $iNewName) ; success : 1 ; failure : 0 FileMove($iPath & "\" & $iOldName, $iPath & "\" & $iNewName) EndFunc; ==> _Rename("C:", "OldFichier.mp3", "NewFichier.mp3") Now for rename a file, I make : #include <file.au3> _Rename("C:", "OldFichier.mp3", "NewFichier.mp3") Wouldn't this be easier? ----------------------GroumphyMore information about me [Fr]
buzz44 Posted June 2, 2005 Posted June 2, 2005 (edited) FileMove() works fine. What you are trying to do is just prolonging an existing function and adding un-necessary work, effort and coding. Edited June 2, 2005 by Burrup qq
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