ikas-mc / ContextMenuForWindows11

Add Custom Context Menu For Windows11
GNU Lesser General Public License v3.0
1.85k stars 90 forks source link

Feature request: File name without extension #99

Closed DSplawski92 closed 4 months ago

DSplawski92 commented 11 months ago

I would be nice to have file name (without extension) param or extract it somehow from existing {name} param.

For example if I would like to extract archive file to the folder with the same name as extracted file. Currently it is not possible, because it tries to create folder with exact name as archive which is not possible.

ikas-mc commented 11 months ago

will add next version...

a temporary workaround

powershell

[System.Diagnostics.Process]::Start('"C:\Program Files\7-Zip\7zG.exe"',  '"x "{path}" -o"{parent}\' +[System.IO.Path]::GetFileNameWithoutExtension('"{name}"') + '"')

https://github.com/ikas-mc/ContextMenuForWindows11/files/12811467/7z.Extract.zip

ikas-mc commented 4 months ago

https://github.com/ikas-mc/ContextMenuForWindows11/releases/tag/5.0.0.0

{nameNoExt} file name without extension, version >=5.0 {extension} file extension, version >=5.0