File Locksmith from PowerToys as a button?

I'm trying to make a button on my apps bar of the FileLockSmith from Microsoft powertoys.

I'm not having any luck....

has anyone else tried with this app??

@disablenosel
@nodeselect
cd "C:\Program Files\PowerToys\WinUI3Apps"
@async:"C:\Program Files\PowerToys\WinUI3Apps\PowerToys.FileLocksmithUI.exe" {sourcepath$|noterm} {filepath$|noterm}

everything time I drag n drop on the button it sends me the same folder, no matter what I put for {file and or paths}

any thoughts?

thanks
x

It looks like there is no command line way of triggering it :

Have you tried directly from command line before trying in a button ?

I didnt think so. I was just looking at documentation. it too bad, that could be a convenient drag n drop button, easy enough to get via the context menu, but still...

I have not tried the cmdline. looks like they might be getting closer to it...

Usually a good way to start : make it work from command line, then you get to know the correct way to pass parameters, where to launch from (in your example the cd part would seem to be useless since you then invoke the exe with its full path), ... and so on.
Then you have all information you need to turn it into a button.