otra puse: db1.bat
echo off
set specprefix=spec
set prefix=%1%
set prefix=%prefix:~0,4%
IF (%specprefix%)==(%prefix%) GOTO SPEC
REM ja nav iipashais prefikss, tad njem saakumu
set username=%1%
set username=%username:~0,3%
GOTO END
:SPEC
set username=%1%
set username=%username:~5,3%
:END
echo on
sqlplusw %username%/%username%@db1 @%1%
(Lasīt komentārus)
Nopūsties: