Command line arguments (other BurnInTest options) |
![]() ![]() ![]() |
Command line arguments can be used to specify certain BurnInTest options and can be particularly useful when automating BurnInTest.
Available command line arguments The following are the BurnInTest command line parameters: -B -C [configfilename] -D [minutes] -E [data] -F -H -J Cycle Disk test patterns between test files (when cyclic set). Note: Random seeking will be skipped in this case. This option has been added to allow multiple test patterns to be used across very large disks, without waiting for the disk to be completely tested with one pattern before moving on to the next disk test pattern. -K Keep disk test files. Specifies not to delete the disk drive test files when an error (e.g. Verification error) occurs. This is intended to assist investigating disk errors. It is recommended that this option is used in conjunction with the Auto Stop Tests on Error feature within Preferences. Once the test files have been investigated, they should be deleted manually. -KA Keep disk test files. Specifies not to delete the disk drive test files, in all cases. Once the test files have been investigated, they should be deleted manually. -L [x,y,wt,ht] -M -N [size in MB] -P -R -S [scriptfilename] Often, -c <config file> is used with the -s command line parameter. This starts the script with a specific configuration, rather than the current configuration on the PC (in the LastUsed.bitcfg file). If the script contains REBOOT/REBOOTEND commands, the startup shortcut specifying BurnInTest (to start BurnInTest after reboot) should not include the -c <config file>, as in this case, the current configuration on the PC should be used for the continuation of a script after reboot. -T -U -V -W -X -Y
Using command line arguments There are a number of different way to specify command line arguments and this can depend on what you are trying to achieve. The most common options for specifying a command line argument are: 1) You can create a shortcut to bit.exe and then specify the command line in the shortcut target. Example 1: Start BurnInTest from a shortcut and run tests automatically. Right click on the bit.exe file and select Create Shortcut. Right click on the new shortcut file and select Properties and specify a Target with the command line argument. "C:\BurnInTest\bit.exe" -r Now to run BurnInTest with these command line parameters, just double click the BurnInTest shortcut. You could also copy the shortcut to the Windows Startup folder to run BurnInTest automatically with the current default settings after Windows has booted. 2) You can open a command window, Start-R, "Cmd". This will open a command window where you can type commands directly, such as shown below. Example 2: Start BurnInTest from a command window and run a pre-defined script of tests Select Windows Start-R, "Cmd" Once the Windows command window is open, type in the commands: cd C:\Program Files\BurnInTest bit.exe -s MyScript.bits 3) You can write a batch file to execute BurnInTest with Command line arguments. Example 3: Start BurnInTest from a batch file with a pre-defined configuration file Create a file with an text editor (like Notepad) called Test.bat and include the lines in the file c: cd "\program files\BurnInTest" bit.exe –c “heavyload.bitcfg” Example 4: Start BurnInTest on a USB flash drive from a batch file, run the tests automatically and use the bit.exe directory as the default directory (i.e. save log files to the USB thumb drive). In the BurnInTest directory on the USB flash drive, you create a file, bit_p.bat, then edit this file and add the line: bit.exe -r -p
See also |