Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autoexec problem?

Status
Not open for further replies.

kathanon

Technical User
Jan 29, 2002
218
GB
Hi I am trying to help a user whose Win 98 keeps getting stuck and will only allow her to go the the boot options screen and startup by choosing option 4 and not loading autoexec.bat. At any other attempt to start windows normally she gets the following

MODE prepare code function completed
MODE seleect code page function completed

But Windows 98 will not start normally

I have pasted the contents of the autoexec.bat file below in case anyone has any ideas.


@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:set tmp=c:path=%RAMD%:\;a:\;%CDROM%:copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL

:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR

:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.

IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
echo.
GOTO QUIT

:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
restart.com
GOTO QUIT

:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=

I am not sure what to do now and trying to advise her by phone and e mail.

All and any suggestions would be gratefully received

Kathy
 
rename the autoexec.bat file to autoexec.old
someone has copied the autoexec.bat from a 98 startup disk and everything in there is not needed..
 
Do the same with config.sys
Neither are needed for Win98 to run.

Cheers,
Jim
iamcan.gif
 
Hi renamed both, but Windows 98 won't get past the startup screen, is there minimum info that needs to be in autoexec.bat?

Thanks very much
 
No the system should work with nothing in the autoexec.bat file.

Can you still start your system via "option 4"?

If you can you need to run msconfig

Start/Run/Msconfig

Then uncheck the "Process Autoexec.bat file" option and see if that makes a difference.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top