Jump to content

Question for DOS Wizards Here


Randy Rhoads

Recommended Posts

Im creating a multi Windows DVD and i am using CDshell to load a 98.IMA image file that i renamed to 95.IMA to use with 95B OS2 setup. I edited the AUTOEXEC.BAT to allow auto formating and i have that part working.

I set my cdrom drive letter to load as Z and a DIR command in DOS shows it is booting in that drive letter.

The last part is giving me some issues however. I want a line added to AUTOEXEC.BAT to allow me to copy win95 setup files from the cd to C:\CABS. The line i added to create the cabs directory on drive C works, but the line added after that to copy the files isnt. It keeps saying invalid path, although i can manually CD my way there and have checked spelling errors which they are none.

Below is my edited AUTOEXEC.BAT, highlighted in bold are the lines i have added thats not working. I assume the setup.exe line should work once those files gets copied?

** Problem found and fixed, edited AUTOEXEC.BAT below with correct switchs. **

Thanks.

@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 95 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.

LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:Z

echo.

cls

echo Windows 95B OS2 Setup

echo ====================

echo.

echo Do You  Want To Quick Format Drive C ?

format c: /q /s /v:WIN_95

echo.

CLS

echo Copy 95B Setup Files To Drive C ?

echo.

pause

MD C:\CABS

COPY Z:\SETUP\95OS2\WIN95\*.* C:\CABS

echo.

CLS

echo Setup Is Ready To Start 95B Install

echo.

Pause

C:\CABS\SETUP.EXE /is

echo.

GOTO QUIT

:QUIT

echo To get help, type HELP and press ENTER.

echo.

rem clean up environment variables

set CDROM=

set LglDrv=

Link to comment
Share on other sites


I don't think you can use

COPY Z:\SETUP\95OS2\WIN95\ C:\CABS\
echo.
CLS
echo Setup Is Ready To Start 95B Install
echo.
Pause
C:\CABS\SETUP /IE /NF
echo.
GOTO QUIT

because you cannot copy folders with the COPY command. I think yuo have to use xcopy...

This is a thougt, but I just wanna try to help anyway :P

Link to comment
Share on other sites

Yes, as you probably have no subfolders in Z:\SETUP\95OS2\WIN95\

You could replace

COPY Z:\SETUP\95OS2\WIN95\ C:\CABS\

with

COPY Z:\SETUP\95OS2\WIN95\*.* C:\CABS

Please note that the trailing backslash after destination is unneeded.

or, if you have subdirs, using XCOPY

XCOPY Z:\SETUP\95OS2\WIN95\*.*  C:\CABS\*.* /s

I would add a /V switch (verify)

jaclaz

Link to comment
Share on other sites

COPY Z:\SETUP\95OS2\WIN95\*.* C:\CABS

This works, thanks a bunch. Now its time to edit the 98 image to do the same. I also edited the original thread with the changed settings incase anyone wants to use this.

*Edit, added a automatic volume label switch for format.exe and forgot to edit out those 98 setup switchs which only work on 98 and ME, but did add a 95 setup switch which will bypass scandisk before starting setup.

Here is a list of setup switchs

Link to comment
Share on other sites

with win98 and me you will want to use the xcopy command as there are subfolders in the win98 folder

XCOPY Z:\SETUP\98OS2\WIN98\*.* C:\CABS\*.* /s

get the XCOPY executable out of the windows\command folder for the version of os you are using to boot.

Link to comment
Share on other sites

Thanks for the info and help. Just about have the 9X's done now.

XCOPY.exe is located in the WIN98_47.CAB file if anyone needs to extract it without needing a 98 install to copy it from Windows.

CHOICE is a external command as well. To bad, as i would love to create Yes and No choices throught the install process like:

Yes or No to Format

Yes = would Format

No = goto Drive

Drive section would run another Yes and No to copy setup files to drive C, picking no would default to command prompt:

Z:/Setup/95os2/Win95/

With a prompt to type in Setup.exe to run setup from CD. Throw in a Fdisk choice for good measure.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...