Drag file rename
-
Zekses
- Posts: 27
- Joined: 29 Jul 2011 23:31
Drag file rename
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
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.)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.
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"
}
XYplorer Beta Club