Jump to content

A rename script


nekokk
 Share

Recommended Posts

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:

Link to comment
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]

Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...