vefatica May 13,201 180 2017-09-27 #1 The command below leaves CINxxx.JPS in %TEMP. Code: ( do c in @clip: ( echo %[c]%@execstr[grep %c i.txt | wc -l] ) ) | g:\gnu\sort -n -r --key=2,2 | head /n %cs Last edited: 2017-09-27
The command below leaves CINxxx.JPS in %TEMP. Code: ( do c in @clip: ( echo %[c]%@execstr[grep %c i.txt | wc -l] ) ) | g:\gnu\sort -n -r --key=2,2 | head /n %cs
vefatica May 13,201 180 2017-09-27 #2 Simplified: Code: v:\> del t:\CIN464.JPS Deleting T:\CIN464.JPS 1 file deleted v:\> echo 1^n2^n3 > clip: v:\> ( do c in @clip: ( echo %c ) ) | head /n 2 1 2 v:\> del t:\CIN464.JPS Deleting T:\CIN464.JPS 1 file deleted
Simplified: Code: v:\> del t:\CIN464.JPS Deleting T:\CIN464.JPS 1 file deleted v:\> echo 1^n2^n3 > clip: v:\> ( do c in @clip: ( echo %c ) ) | head /n 2 1 2 v:\> del t:\CIN464.JPS Deleting T:\CIN464.JPS 1 file deleted
rconn Administrator May 13,229 208 Staff member 2017-10-02 #3 Same reason as the previous times you've asked this question - TCC cannot tell when the temporary clipboard file is no longer needed. Your syntax is also the most inefficient way you could have done this - what you're doing is: Redirecting to a temporary file Reading from the temporary file and writing to the clipboard Reading the clipboard and writing to a temporary file Reading from the temporary file Leave out "clip:" and it'll run a lot faster.
Same reason as the previous times you've asked this question - TCC cannot tell when the temporary clipboard file is no longer needed. Your syntax is also the most inefficient way you could have done this - what you're doing is: Redirecting to a temporary file Reading from the temporary file and writing to the clipboard Reading the clipboard and writing to a temporary file Reading from the temporary file Leave out "clip:" and it'll run a lot faster.