Closed rotanov closed 7 years ago
Consider the following sp.exe --separator=// --// --out=output.txt 1.exe --// --out=output.txt 2.exe
sp.exe --separator=// --// --out=output.txt 1.exe --// --out=output.txt 2.exe
Now only 1.exe will gain write access to the output.txt. Setting share mode to FILE_SHARE_READ | FILE_SHARE_WRITE doesn't solve the problem.
1.exe
output.txt
FILE_SHARE_READ | FILE_SHARE_WRITE
Consider open file handle, write, close file handle for each write.
Fixed in the last rewrite.
Consider the following
sp.exe --separator=// --// --out=output.txt 1.exe --// --out=output.txt 2.exe
Now only
1.exe
will gain write access to theoutput.txt
. Setting share mode toFILE_SHARE_READ | FILE_SHARE_WRITE
doesn't solve the problem.Consider open file handle, write, close file handle for each write.