cooow
cooow

Reputation: 868

Close process using a file on windows

I would want to close all the programs which are using a file on Windows. I've an example of what I want on Linux :

pids=`lsof | grep $fic | grep -v "grep" | tr -d '\t' | cut -d" " -f2`

Thanks!

Upvotes: 1

Views: 94

Answers (1)

PradyJord
PradyJord

Reputation: 2160

Please change tag from bash to batch and Install Handle

This will solve the purpose

Upvotes: 3

Related Questions