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 :
opened 01:21AM - 27 Nov 22 UTC
Idea-Enhancement
Help Wanted
Product-File Locksmith
### Description of the new feature / enhancement
Thank you for creating this fe… ature
I went through documents
https://learn.microsoft.com/en-us/windows/powertoys/file-locksmith
and found no info on how to unlock folder using commandline(CMD)
### Scenario when this would be used?
to unlock folder using programming
for example, in LockHunter
https://lockhunter.com/
I can run in
> C:\Program Files\LockHunter\LockHunter.exe "C:\Temp"
to unlock folder
### Supporting information
_No response_
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...
opened 06:30AM - 13 Sep 23 UTC
Idea-Enhancement
Product-File Locksmith
### Description of the new feature / enhancement
Make a command line version of… file locksmith so it can be use in batch files.
### Scenario when this would be used?
I have a batch file to open an excel file, but only if it is not already open.
And after I open the excel file, my batch file waits for it to finish before doing more stuff.
because of the quirky way excel works when it has multiple files open, neither "start /wait" nor C:\Windows\System32\tasklist.exe can do the job.
### Supporting information
"C:\Windows\System32\openfiles.exe /query" takes way too long.
"lsof" is a command in various flavors of unix that is like what I want.
https://man7.org/linux/man-pages/man8/lsof.8.html
Lot's of other people want this too, as google will show you.
https://www.google.com/search?q=how+to+check+from+command+line+if+a+given+file+is+open+by+any+process
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.