AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page
   Local Database  BAT Magic   [216 / 250] RSS
 From   To   Subject   Date/Time 
Message   Visitor    ALL   repeat.bat   December 16, 1995
 1:20 PM *  

Title:      "Keystroke Recycler"
Reference:  PC World January 1990
Author:     Arik Baratz
Files:      REPEAT.DOC, REPEAT.BAT

Do you waste time typing the same command over and over with
different parameters? If so, REPEAT.BAT can speed your work by
repeating any DOS command attached to a different parameter on each
repetition. To use the batch file, type REPEAT followed by a command
and a list of parameters. For example, enter REPEAT DIR *.EXE *.COM
for a directory listing of all .EXE and .COM files in the current
drive.

REPEAT works by storing a command in a temporary environment variable
CMD. The program echoes CMD so you can see each line as it's
executed, issues the command and a parameter, and then shifts the
parameters left until no more remain. If you enter REPEAT with no
parameters, the batch file displays brief instructions.

--[Cut here]----------------------------------------------------------

echo off
if "%1"=="" goto instruct
if "%2"=="" goto instruct
set cmd=%1
:docmd
echo %cmd% %2
%cmd% %2
shift
if not "%2" == "" goto docmd
goto end
:instruct
echo Error: Missing parameters
echo Use:
echo REPEAT cmd param [param...]
:End
set cmd=
___ Blue Wave/QWK v2.12
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0182 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108