Code: Select all
renameitem(regexreplace(gpc(<curitem>, "base"), "^(.+?)(\.[^.]+?)$", "$1") . ".lnk");
Code: Select all
renameitem(regexreplace(gpc(<curitem>, "base"), "^(.+?)(\.[^.]+?)$", "$1") . ".lnk");
quote() | trim()
and replace()
, go and read their documentation and write it yourself?1062;
Convert this autohotkey v2 script into python
{ENTER}extractext()
is meant to give you text that is stripped from all formatting code (regardless if it's a .doc, .htm or anything else) so I don't understand the feature request here...