Author Topic: Rename window with filename only  (Read 10 times)

culturework

  • Newbie
  • *
  • Posts: 1
    • View Profile
Rename window with filename only
« on: Today at 09:08:14 »
A fresh user here, greetings to all and big thanks to dev for this impressive soft.

Question:
I am using this User Command:
#options (RunSeparate)
MC.Filesystem.Rename ASKNAME

what can I do to have this window with filename only, without ext?
I am frequently adding strings to names, so current name in the box is needed, but don't need extension.
I am new to this and still struggling to understand scripting in MC.

total_annihilation00

  • Power Member
  • ****
  • Posts: 194
  • Tech Savant\ Envisioneering
    • View Profile
Re: Rename window with filename only
« Reply #1 on: Today at 11:12:11 »
Use this User-Defined Command MultiScript for only a popup /w the Filename (no Extension):
Code: [Select]
#options (RunSeparate)
@var $file = GetSourceFocusPath();
@var $base = PathGetNamePart( $file, 1 );
MC.Filesystem.Rename FILE={$file} ASKNAME NEWNAME="{$base}";

Hope it helps ! In the future, you can use ChatGPT AI to help you /w your scripting needs, I found it very efficient, Claude is better at AutoHotkey scripting (unrelated.)
« Last Edit: Today at 11:15:43 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~