Contents of autoexec.bat (fragment)
@ECHO OFF
FOR %%a IN (A: C:) DO IF EXIST SET ud=%%a
mem /c|tfind /i "TW">nul
if not errorlevel 1 goto mo
lh %ud%\dos\tw /np N3 >nul
:mo
SET DIRCMD=/OGN /4
SET PROMPT=$P$G
SET HDPMI=16384
SET RAMDRIVE=x:\
XMSDSK 20480 %RAMDRIVE% /y>NUL
PATH=%RAMDRIVE%;%ud%\;%ud%\dos;
COPY %ud%\dos\COMMAND.COM %RAMDRIVE%>NUL
SET COMSPEC=%RAMDRIVE%COMMAND.COM
MD %RAMDRIVE%TEMP
SET TEMP=%RAMDRIVE%TEMP
CD>%TEMP%\BOOTDRV.INI
vol>%TEMP%\VOL.TXT
cls
call w.bat box (+white on +blue) @%ud%\dos\dos.scr:start
if errorlevel 100 goto end
if errorlevel 4 goto re
if errorlevel 3 goto end
if errorlevel 2 goto wdos
menu..bat
Below is part of menu.bat:
IF EXIST %RAMDRIVE%dos\gho.bat goto gh
IF NOT EXIST %RAMDRIVE%unzip.exe copy %ud%\dos\unzip.exe %RAMDRIVE%unzip.exe
IF EXIST %ud%\dos\gho.ex_ copy %ud%\dos\gho.ex_ %RAMDRIVE%gho.zip>NUL
PATH=%PATH%;%RAMDRIVE%gho\;
%RAMDRIVE%
cd\
unzip -d gho.zip >nul
del gho.zip >nul
:gh
gho.bat
It stops when it gets to cd\ . At this point there is unzip and gho.zip in %RAMDRIVE%, but it just won't extract.
After extracting manually, the original PATH becomes invalid; it says file not found (the file is in %ud%\dos)
@ECHO OFF
FOR %%a IN (A: C:) DO IF EXIST SET ud=%%a
mem /c|tfind /i "TW">nul
if not errorlevel 1 goto mo
lh %ud%\dos\tw /np N3 >nul
:mo
SET DIRCMD=/OGN /4
SET PROMPT=$P$G
SET HDPMI=16384
SET RAMDRIVE=x:\
XMSDSK 20480 %RAMDRIVE% /y>NUL
PATH=%RAMDRIVE%;%ud%\;%ud%\dos;
COPY %ud%\dos\COMMAND.COM %RAMDRIVE%>NUL
SET COMSPEC=%RAMDRIVE%COMMAND.COM
MD %RAMDRIVE%TEMP
SET TEMP=%RAMDRIVE%TEMP
CD>%TEMP%\BOOTDRV.INI
vol>%TEMP%\VOL.TXT
cls
call w.bat box (+white on +blue) @%ud%\dos\dos.scr:start
if errorlevel 100 goto end
if errorlevel 4 goto re
if errorlevel 3 goto end
if errorlevel 2 goto wdos
menu..bat
Below is part of menu.bat:
IF EXIST %RAMDRIVE%dos\gho.bat goto gh
IF NOT EXIST %RAMDRIVE%unzip.exe copy %ud%\dos\unzip.exe %RAMDRIVE%unzip.exe
IF EXIST %ud%\dos\gho.ex_ copy %ud%\dos\gho.ex_ %RAMDRIVE%gho.zip>NUL
PATH=%PATH%;%RAMDRIVE%gho\;
%RAMDRIVE%
cd\
unzip -d gho.zip >nul
del gho.zip >nul
:gh
gho.bat
It stops when it gets to cd\ . At this point there is unzip and gho.zip in %RAMDRIVE%, but it just won't extract.
After extracting manually, the original PATH becomes invalid; it says file not found (the file is in %ud%\dos)

