MSFN Forum: Question for DOS Wizards Here - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Question for DOS Wizards Here Rate Topic: -----

#1 User is offline   Randy Rhoads 

  • Member
  • PipPip
  • Group: Members
  • Posts: 133
  • Joined: 15-August 04

Posted 07 September 2004 - 06:04 AM

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.

Quote

@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=



#2 User is offline   radhus 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 06-April 04

Posted 07 September 2004 - 07:56 AM

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

#3 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,578
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 07 September 2004 - 09:11 AM

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

Quote

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

#4 User is offline   oftentired 

  • Member
  • PipPip
  • Group: Members
  • Posts: 145
  • Joined: 25-August 04

Posted 07 September 2004 - 09:38 AM

Also, Xcopy is an external command so xcopy.exe will have to be in the path or pointed to when you invoke it.

#5 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 September 2004 - 10:10 AM

As the CABS folder for Windows 95 has no subfolders just use copy

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

should work fine I would use the first personally.

#6 User is offline   Randy Rhoads 

  • Member
  • PipPip
  • Group: Members
  • Posts: 133
  • Joined: 15-August 04

Posted 07 September 2004 - 10:35 AM

Quote

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

#7 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,266
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 September 2004 - 12:15 PM

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.

#8 User is offline   Randy Rhoads 

  • Member
  • PipPip
  • Group: Members
  • Posts: 133
  • Joined: 15-August 04

Posted 07 September 2004 - 12:29 PM

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.

#9 User is offline   Stanislavs 

  • Junior
  • Pip
  • Group: Members
  • Posts: 82
  • Joined: 19-August 04

  Posted 25 September 2004 - 01:54 AM

Can anyone please teach me this stuff?

#10 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,399
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 September 2004 - 08:36 AM

Go to your local library and pickup a dos book or google for guides. I'm sure you can find LOTS. It's actually very simple, most commands have very silimar syntax and /? to help.

#11 User is offline   Stanislavs 

  • Junior
  • Pip
  • Group: Members
  • Posts: 82
  • Joined: 19-August 04

  Posted 25 September 2004 - 09:33 AM

So you can program stuff with DOS ? :w00t:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy