Go to:  Davar site entry | Site contents | Site index | Personal computer | 4DOS | Text bottom

S  4DOS  Batch  Command

S batch command sets  or empty value to environment variable S.  Other batch commands should use %S% in place of "beep" symbol .  This gives the ability to switch sound OFF/ON easily by entering S command with the appropriate parameter.

Notes: AUTOEXEC.BAT or AUTOEXEC.NT should contain command "SET S="  Sound is ON.
"Beep" symbol 7 (bullet) is displayed by your browser as "".



:  S  Switch Batch Command Sound Mode ON/OFF  07/23/1999-08/23/1999
:  ----------------------------------------------------------------
:  Copyright (C) 1999 by Vladimir Veytsel
:
:  1.  Sound mode manipulation parameter:
:     ?  or /   - Display current sound mode
:     0 or OFF - Switch sound mode OFF
:     1 or ON  - Switch sound mode ON
:     Other    - Toggle current sound mode OFF/ON
:
:     Note:  AUTOEXEC.BAT or AUTOEXEC.NT should contain command
:           "SET S="  - Sound is ON
:
@ECHO %TR%

 IF %1.==?.  .OR.  %1.==/.  GOTO Finish

 IF %1.==0.  .OR.  %@UPPER[%1].==OFF.  (SET S=  ^ GOTO Finish)
 IF %1.==1.  .OR.  %@UPPER[%1].==ON.   (SET S= ^ GOTO Finish)

 IFF %S%.==.  THEN
     SET S=
 ELSE
     SET S=
 ENDIFF

:Finish

 IFF %S%.==.  THEN
     SET S1=OFF
 ELSE
     SET S1=ON
 ENDIFF

 ECHO %S%%B%Batch command %C%sound %B%mode is now %C%%S1%%D%

 SET S1=
  

View [and save] TR.BTM text   (Use [Back] button or [Alt]+[CL] to return here)
Copyright © 1999 by
Go to:  Davar site entry | Site contents | Site index | Personal computer | 4DOS | Text top