nekokk Posted October 18, 2006 Share Posted October 18, 2006 I have tried to write it, but I hope I can rename a file when I click mouse right key on a file like original rename function in windows, I know how to add a new function on right key list but I dont know how to give a file that I selected to the rename function,so my problem is how to give a file to rename function without giving a path,how to let the function know target is the selected file? Sorry, my English is poor. I hope you guys could know what I say Link to comment Share on other sites More sharing options...
this-is-me Posted October 18, 2006 Share Posted October 18, 2006 (edited) use Au3Rename.exe "%1" %1 expands to the path and filename you right-clicked on. then you can use $cmdline to pull that name up. use FileMove to rename the file. Edited October 18, 2006 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
nekokk Posted October 18, 2006 Author Share Posted October 18, 2006 (edited) Thank you guys, I am trying. Edited October 18, 2006 by nekokk Link to comment Share on other sites More sharing options...
Sardith Posted October 18, 2006 Share Posted October 18, 2006 Filemove FileMove("C:\Test.au3", "C:\Test 9-17-06.au3") So Slow.. I didn't mean your slow Nekokk, Im talking about me. I was beaten to the post, little clarification. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
nekokk Posted October 18, 2006 Author Share Posted October 18, 2006 use Au3Rename.exe "%1"%1 expands to the path and filename you right-clicked on.then you can use $cmdline to pull that name up.use FileMove to rename the file.Could you make a simple example for the way to pull name up by $cmdline and assign path by %1? because I am not familar with $cmdline and %1..so I am confused. Link to comment Share on other sites More sharing options...
nekokk Posted October 18, 2006 Author Share Posted October 18, 2006 FilemoveFileMove("C:\Test.au3", "C:\Test 9-17-06.au3")So Slow.. I didn't mean your slow Nekokk, Im talking about me. I was beaten to the post, little clarification. I know you didn't mean that. Link to comment Share on other sites More sharing options...
nekokk Posted October 29, 2006 Author Share Posted October 29, 2006 use Au3Rename.exe "%1"%1 expands to the path and filename you right-clicked on.then you can use $cmdline to pull that name up.use FileMove to rename the file.Thank you you guys helped me a lot. 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