Is there a way to use the SETCOMPUTERNAME to pull the name from the computer or something else that is unique to the computer? It would be nice to be able to create just one script and have it run and not have to worry about going back and renaming the files that it exports.
Log file name prefixes using an environment variable, %COMPUTERNAME%, %USERNAME%, %OS%, %PROCESSOR_ARCHITECTURE% are supported. So, if for example you wanted to prefix log files with a computerís name, just enter the following in Preferences->Logging, Prefix,
If you want to change the COMPUTERNAME, you could set the %COMPUTERNAME% environment variable for example in a batch file, that also starts BurnInTest:
cd "\Program Files\BurnInTest"
bit.exe -r -p
Performance Test 6.1
I'm running Performance test 6.1 not Burn-in. Below is the script I'm running. I'm wanting to know if the first line SETCOMPUTERNAME can use a variable so that it pick up the real name of the computer and not just what I put in there like "My Test Machine" I tried to use "%COMPUTERNAME%" but it only put in what was in the quotes. I'm wanting it to pick up the name of the computer. Is that possible?
SETCOMPUTERNAME "My Test Machine"
Sorry, my mind was clearly thinking BurnInTest when I answered this.
No, the PerformanceTest 6.1 SETCOMPUTERNAME can only have fixed values. We are thinking of adding dynamic log names in the next major release of PerformanceTest.
For a workaround try this:
If Exist %FileName% del %FileName%
echo SETCOMPUTERNAME "%computername%" >> %FileName%
echo SUPPRESSWARNINGS ON >> %FileName%
echo SETDISK "C:" >> %FileName%
echo SETPCPUTESTPROCESSES 5 >> %FileName%
echo RUN CPU_ALL >> %FileName%
echo RUN G2D_ALL >> %FileName%
echo RUN ME_ALL >> %Filename%
echo RUN DI_ALL >> %Filename%
echo EXPORTCSV "<export location>" >> %Filename%
E:\PerformanceTest\pt.exe /s bench.pts
It dynamically rebuilds the script that runs to insert the computername. Works great for me, hope this helps.
Thanks for the feedback.