Variable for filename without extension?

Heyo!

I did a button to create a file, which get's the name of the selected file as filename, and fills in the name in the txt.
The button runs a MS-DOS Batch function:

echo DirectShowSource("{file}") > "{sourcepath}\{file}.avs"

With this code, when I mark f.e. hello.wmv, a text file named hello.wmv.avs is created (the part after ">"). But I want to have a hello.avs-file.
So I would need a {file} parameter without file extension.

Is there one? Or do you know how I could realise this script without getting .ext into the created filename?

Use {file|noext}

(Or, better, {file$|noext} so that the button won't do anything if you accidentally run it when nothing is selected.)

1 Like

Works, thanks! :slight_smile: