home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
4dtnt.exe
/
AUTOEXEC.ZIP
/
AUTOEXEC.BAT
next >
Wrap
DOS Batch File
|
1991-11-03
|
3KB
|
136 lines
@echo off
rem pause
set bootd=%[_boot]:
set drp=%bootd%\DRIVERS\
gosub setramd
gosub cdpath
set csize=%@eval[%@ems[k]-512]
if %csize gt 2048 set csize=2048
if %csize gt 512 %drp%loadhi %drp%adcache -w0.2 -e%csize
unset csize
if %@name[%_dosver] lt 5 %drp%loadhi %drp%buffers +3
%drp%loadhi %drp%files +80
%drp%loadhi %drp%fcbs +20,2
gosub uvsetup
%drp%loadhi %drp%uvreset
%drp%loadhi %drp%4dos24h
%drp%loadhi c:\dos\mode lpt1,,b
%drp%loadhi %drp%dmp /NV /G+ /MXP /D%ramd%
%drp%loadhi %drp%kstack.com
%drp%loadhi %bootd%\dos\trakball dos
loadbtm on
%ramd%
copy %bootd%\ramdisk\*.* %ramd% >& NUL
set compath=%@path[%comspec%]
iff "%_4ver" ne "" then
copy %compath%\copylib\*.* %ramd% >& NUL
set comspec=%ramd%\4DOS.COM
endiff
iff %_ansi == 0 then
prompt $P$g
else
prompt $e[37;44m$P$g
endiff
set temp4dos=%ramd%
set temp=%ramd%
set tmp=%ramd%
set pktmp=%ramd%
iff exist %compath%4dos286.exe then
path %ramd%\;%bootd%\dos
else
path %ramd%\;.;%bootd%\dos
endiff
if "%_4ver" eq "" set 4dshell=/u /s:b%ramd%\ /e+256u
unalias *
iff %@name[%_dosver] ge 5 then
alias /R %compath%aliases.500
else
alias /R %compath%aliases
endiff
rem toggle n > NUL
fastatkb 00
unset compath
inkey /W15 Are you there? %%x
iff "%x" ne "" then
keystack "%x"
unset x
goto exit
else
dazzle
goto exit
endiff
goto exit
:exit
quit
rem
rem **********************************************************************
rem * COMMON SUBROUTINES *
rem **********************************************************************
rem
rem SET UP ULTRAVISION
rem
:uvsetup
%drp%loadhi g:\uv\uv.com
%drp%loadhi g:\uv\prtsc.com
set uv=%ramd%
return
rem
rem FIND RAMDISK AND SETRAMD
rem
:setramd
set work=ZYXWVUTSRQPONMLKJIHGFEDC
set count=0
:ramdloop
set foo=%@substr[%work,%count,1]:
iff %@ready[%foo] == 1 .and. %@removable[%foo] == 0 .and. %@remote[%foo] == 0 then
set ramd=%foo
unset work count foo
goto ramdexit
else
set count=%@eval[%count+1]
endiff
iff %count lt 24 then
goto ramdloop
else
set ramd=%_boot\ramdisk
unset count work foo
goto ramdexit
endiff
:ramdexit
return
rem
rem SET CDPATH
rem
:cdpath
set work=CDEFGHIJKLMNOPQRSTUVWXYZ
set count=1
set cdpath=C:\
:cdloop
set d=%@substr[%work,%count,1]:
if %d gt %[_lastdisk]: goto cdexit
if %@eval[%@ready[%d]+%@removable[%d]] gt 0 set cdpath=%[cdpath];%d\
set count=%@eval[%count+1]
goto cdloop
:cdexit
unset work count d
return