Skip to content

Can ugrep.exe search files that another process on Windows has open for writing? #473

Answered by genivia-inc
hollymcr asked this question in Q&A
Discussion options

You must be logged in to vote

I've made a tiny update and recompiled the ugrep.exe v7.3 files located in the repo bin dirs: https://github.com/Genivia/ugrep/tree/master/bin/win64

Tested as follows in cmd.exe:

C:\Users\[...]> copy con testcon.txt
test
this
out

then leave that open and start new cmd.exe to search with ugrep.exe test testcon.txt which returns test.

So this should work. If an error occurs, then it the other process prevents the file from being read when it writes it, or it deleted the file, or other manipulations prevents read access.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hollymcr
Comment options

Answer selected by hollymcr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants