home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hot Shareware 32
/
hot34.iso
/
ficheros
/
DUTI
/
CDPAT002.ZIP
/
NWIN.BAT
< prev
Wrap
DOS Batch File
|
1998-04-01
|
2KB
|
77 lines
@echo off
: Run Windows on the network
:
: If we're already in Windows, don't start again
inwin
if errorlevel 1 goto nocando
:
: Make sure TEMP is defined
if []==[%temp%] set temp=c:\dos
:
: Preserve path where we started
cdpath >%temp%\winreset.bat
:
: Create some directories
mkpath /n c:\wp f:\wp f:\draw f:\ss f:\cfg f:\misc
:
: Make sure we're at the root of these dirs
cd u:\
cd x:\
cd y:\
:
: Goto Windows home directory (where WIN.COM is located)
mkpath %win.home%
:
: Set Windows' DOS prompt
set winpmt=$e[47;31m EXIT to return to Windows! $e[37;44m$_$p $g
:
: _p_ is used by some programs, so before we run out of env. space...
set _p_=!@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@!
:
: Audit trail
tmsg * WIN3.1 in
:
: Don't want NetWare messages
castoff
:
: Run Windows
win %1 %2 %3 %4 %5
:
: Make sure we're at the root of these dirs in case the user changed them
cd u:\
cd x:\
cd y:\
cd %netdrv.app%\
cd c:\
:
: Receive NetWare messages again
caston
cls
:
: Audit trail
tmsg * WIN3.1 out
c:
:
: Flush buffers
smartdrv /c
:
: Remove env. variables
set winpmt=
set _p_=
:
: For the fun of it...
cookie
:
: Show some of the options the user has
call options
:
: Restore paths to before we started
call %temp%\winreset
goto end
:nocando
echo You're already running Windows!
bu w 3
:end