google / UIforETW

User interface for recording and managing ETW traces
https://randomascii.wordpress.com/2015/04/14/uiforetw-windows-performance-made-easier/
Apache License 2.0
1.55k stars 201 forks source link

LabScripts/GeneralTracing/set_vars.bat: "find: '6.1.': No such file or directory" #103

Open CalebRouleau opened 7 years ago

CalebRouleau commented 7 years ago

https://github.com/google/UIforETW/blob/master/LabScripts/GeneralTracing/set_vars.bat#L15

It looks like the device that I am running these tests (version "Microsoft Windows [Version 10.0.15063]")

Does not support pipes.

Could we

  1. Change the script to not use the pipe?

or

  1. Install/set up my device to allow pipes?
randomascii commented 7 years ago

This should be equivalent. It uses a temporary file instead of the pipe operator. Does that work better?

ver >%temp%\version_information.txt find "6.1" <%temp%\version_information.txt if %errorlevel% == 0 goto Windows7