Get the extension without the dot

General discussion
Post Reply
nad
Posts: 2
Joined: Tue Mar 19, 2024 8:28 pm

Get the extension without the dot

Post by nad »

how to Get the extension without the dot?

$ext ='regex.replace(@sel.file.ext, \., "")'
item(type='file' mode=single title='ext'
cmd='C:\Program FilES\everything\everything.exe' args='-noregex -s "ext:@ext"')

also how to put file paths correctly in the 'args' ?

$path = "@sel(true, "\n")"
args='/script="::text "$path" "'
Last edited by nad on Tue Mar 19, 2024 8:50 pm, edited 1 time in total.
Post Reply