@echo off
@sendlog DBANK
i:\bin\send Looking for Microsoft Windows program file ...^M^J
i:\bin\send ^M^J
C:
if exist H:\%username%\foundwin.!@# del H:\%username%\foundwin.!@#
if exist win.com goto SetEnDB
if exist win.bat goto SetEnDB
for %%i in (%path%) do call i:\dbank\look4win %%i
if exist H:\%username%\foundwin.!@# goto found
if exist c:\windows\win.com goto win1
if not exist c:\windows\win.bat goto tryD
:win1
cd\windows
goto SetEnDB
:tryD
if exist d:\windows\win.com goto win2
if not exist d:\windows\win.bat goto tryWinC
:win2
D:
cd\windows
goto SetEnDB
:tryWinC
if exist c:\win\win.com goto win3
if not exist c:\win\win.bat goto tryWinD
:win3
cd\win
goto SetEnDB
:tryWinD
if exist d:\win\win.com goto win4
if not exist d:\win\win.bat goto tryI
:win4
D:
cd\win
goto SetEnDB
:tryI
if exist i:\windows\win.com goto win5
if not exist i:\windows\win.bat goto notfound
:win5
I:
cd\windows
goto SetEnDB
:notfound
i:\bin\send Dbank can only run under Microsoft Windows which is not found.^M^J
i:\bin\send If you did install Windows, please include its directory name in the^M^J
i:\bin\send `SET mypath=' statement of your \AUTOUSER.BAT.^M^J
i:\bin\send ^M^J
i:\bin\send If you wish to install Windows for use with NUSNET, please access^M^J
i:\bin\send `Applications', `Others ...', then `Information' from the NUSNET Main Menu^M^J
i:\bin\send for help.^M^J
i:\bin\send ^M^J
pause
goto Return
:found
del H:\%username%\foundwin.!@#
:
:SetEnDB
:
i:\bin\send Setting Environment for Dbank...^M^J
addpath i:\dbank > NUL
ECHO @I:\dbank\dbankq.bat >H:\%username%\$NNRESET.BAT
@share /L:500 >NUL
if not /%temp%==/ goto Gottemp
set temp=C:\
:
:Gottemp
:
rem See if Windows already loaded:
if exist H:\%username%\~loaded~.!@# del H:\%username%\~loaded~.!@#
set|find "windir=">H:\%username%\~inwin!~.bat
call H:\%username%\~inwin!~
del H:\%username%\~inwin!~.bat
if exist H:\%username%\~loaded~.!@# goto WinExist
goto LoadWin
:
:WinExist
:
del H:\%username%\~loaded~.!@#
I:\BIN\SEND ^M^J
I:\BIN\SEND Windows was already running before you invoked Dbank.^M^J
I:\BIN\SEND ^M^J
I:\BIN\SEND If the message `SHARE already installed' appears above,^M^J
I:\BIN\SEND please use Alt+Tab to get back to Microsoft Windows,^M^J
I:\BIN\SEND then `Run...' I:\DBANK\DBANK from the `File' menu of Program Manager.^M^J
I:\BIN\SEND ^M^J
I:\BIN\SEND If that fails, or if the message above was merely `SHARE installed',^M^J
I:\BIN\SEND please use Alt+Tab to get back to Microsoft Windows,^M^J
I:\BIN\SEND then end your Windows session, and then `Dbank Access' from NUSNET again.^M^J
I:\BIN\SEND ^M^J
I:\BIN\SEND First press any key to return to NUSNET menu, then use Alt+Tab:^M^J
pause>nul
rem pause
goto Return
:
:LoadWin
:
call win i:\dbank\dbank.exe
:
:Return
H:
menu
