Sign in to follow this  
Followers 0
nekokk

A rename script

7 posts in this topic

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 :lmao:

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thank you guys, I am trying. :lmao:

Edited by nekokk

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

:lmao: I know you didn't mean that.

Share this post


Link to post
Share on other sites

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 :whistle: you guys helped me a lot.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0