@echo off
rem
rem Windows 95: the first time, this file is automatically
rem activated by the system; in this case, it asks if you
rem want Windows to be run.
rem When activated by the user (second time and following),
rem it activates Windows without asking for confirm. The
rem control is made via the environment variable "autowin".
rem It also sets the path for XyWin if this is c:\xw\xw.exe
rem
rem DON'T FORGET:
rem put this file in a directory named \bat;
rem add the following to your autoexec.bat:
rem PATH \BAT;%PATH%

if "%autowin%"== "1" goto noask
set autowin=1
rem choice /csn Attivare Windows95 
choice /cyn Start Windows95 
if errorlevel 2 goto end2

:noask
c:
cd \
set patwin=
set patorg=%path%
if exist \xw\xw.exe set patwin=%patwin%c:\xw;

rem start Windows
set path=%patorg%;%patwin%
\windows\win 

:end1
set path=%patorg%
set patorg=
set patwin=
c:
cd \
goto end

:end2
rem echo Per attivare Windows95 battere WIN
echo To start Windows95 type WIN
goto end

:end
1