home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / CHIPCD_3_98.iso / software / share / sharmies / unixdos / data.z / test_exp.bat < prev    next >
DOS Batch File  |  1997-11-18  |  207b  |  10 lines

  1. @echo off
  2. set EXP=1
  3. set BASE=2
  4. :LOOP
  5.     echo 2 power %EXP% = %BASE%
  6.     call setenv "EXP=`expr $EXP + 1`"
  7.     call setenv "BASE=`expr $BASE x 2`"
  8.     test $EXP -le 16
  9. IF NOT ERRORLEVEL 1 GOTO LOOP
  10.