Renaming a .lnk file to the basename of its target

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Renaming a .lnk file to the basename of its target

Postby chrisjj » Mon Mar 30, 2026 8:43 pm

I have files e.g. xxxx.lnk having target e.g. C:folder\filename.ext. How do I rename to "filename - my stuff"?

I do see <(System.Link.TargetParsingPath)> but it provides only the full path C:folder\filename.ext. I guess I could parse out "filename" will JS but is there an easier way?
chrisjj
 
Posts: 124
Joined: Wed Mar 30, 2011 5:26 pm

Re: Renaming a .lnk file to the basename of its target

Postby Admin » Wed Apr 01, 2026 12:58 am

Reaming the file pointed by the shortcut file?
Admin
Site Admin
 
Posts: 3168
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support