Drag file rename

Features wanted...
Post Reply
Zekses
Posts: 27
Joined: 29 Jul 2011 23:31

Drag file rename

Post by Zekses »

Is it possible make an option to drag one file onto another and by this replace its name but not extension? Will be very useful for subtitles.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Drag file rename

Post by LittleBiG »

Zekses wrote:Is it possible make an option to drag one file onto another and by this replace its name but not extension? Will be very useful for subtitles.
Solving this was my very first script and the mostly used since then. Frankly, that was the moment when I fell in love with XY. I was so glad I could invent an easy way to this repetative task, matching the movie and the subtitle name. (It would have been impossible in my previous file manager.)

Code: Select all

"Name matching|c:\windows\system32\shell32.dll / 250"
  if (<curitem> != "" AND <curitemprev> != "")
  { call renameitem("<get curitemprev base>", , 1)
  } else {
    status "Missing selection", , "alert"
  }
First I click on the movie file, then I go to the subtitle, and click on my "Name matching" button. This gives the movie name to the subtitle, without changing the extension.

Zekses
Posts: 27
Joined: 29 Jul 2011 23:31

Re: Drag file rename

Post by Zekses »

Thx, works like a charm

Post Reply