Randy Rhoads Posted September 7, 2004 Share Posted September 7, 2004 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 OFFset EXPAND=YESSET DIRCMD=/O:Nset LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15set 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 Cclscall setramd.bat %LglDrv%set temp=c:\set tmp=c:\path=%RAMD%:\;a:\;%CDROM%:\copy command.com %RAMD%:\ > NULset comspec=%RAMD%:\command.comcopy extract.exe %RAMD%:\ > NULcopy readme.txt %RAMD%:\ > NUL:ERRORIF EXIST ebd.cab GOTO EXTecho Please insert Windows 95 Startup Disk 2echo.pauseGOTO ERROR:EXT%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NULecho The diagnostic tools were successfully loaded to drive %RAMD%.echo.LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:Zecho.clsecho Windows 95B OS2 Setupecho ====================echo.echo Do You Want To Quick Format Drive C ?format c: /q /s /v:WIN_95echo.CLSecho Copy 95B Setup Files To Drive C ?echo.pauseMD C:\CABSCOPY Z:\SETUP\95OS2\WIN95\*.* C:\CABSecho.CLSecho Setup Is Ready To Start 95B Installecho.PauseC:\CABS\SETUP.EXE /isecho.GOTO QUIT:QUITecho To get help, type HELP and press ENTER.echo.rem clean up environment variablesset CDROM=set LglDrv= Link to comment Share on other sites More sharing options...
radhus Posted September 7, 2004 Share Posted September 7, 2004 I don't think you can use COPY Z:\SETUP\95OS2\WIN95\ C:\CABS\echo.CLSecho Setup Is Ready To Start 95B Installecho.PauseC:\CABS\SETUP /IE /NFecho.GOTO QUITbecause 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 Link to comment Share on other sites More sharing options...
jaclaz Posted September 7, 2004 Share Posted September 7, 2004 Yes, as you probably have no subfolders in Z:\SETUP\95OS2\WIN95\ You could replaceCOPY Z:\SETUP\95OS2\WIN95\ C:\CABS\withCOPY Z:\SETUP\95OS2\WIN95\*.* C:\CABSPlease note that the trailing backslash after destination is unneeded.or, if you have subdirs, using XCOPYXCOPY Z:\SETUP\95OS2\WIN95\*.* C:\CABS\*.* /sI would add a /V switch (verify)jaclaz Link to comment Share on other sites More sharing options...
oftentired Posted September 7, 2004 Share Posted September 7, 2004 Also, Xcopy is an external command so xcopy.exe will have to be in the path or pointed to when you invoke it. Link to comment Share on other sites More sharing options...
IcemanND Posted September 7, 2004 Share Posted September 7, 2004 As the CABS folder for Windows 95 has no subfolders just use copyCOPY Z:\SETUP\95OS2\WIN95\*.* C:\CABSorCOPY Z:\SETUP\95OS2\WIN95 C:\CABSshould work fine I would use the first personally. Link to comment Share on other sites More sharing options...
Randy Rhoads Posted September 7, 2004 Author Share Posted September 7, 2004 COPY Z:\SETUP\95OS2\WIN95\*.* C:\CABSThis 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 More sharing options...
IcemanND Posted September 7, 2004 Share Posted September 7, 2004 with win98 and me you will want to use the xcopy command as there are subfolders in the win98 folderXCOPY Z:\SETUP\98OS2\WIN98\*.* C:\CABS\*.* /sget 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 More sharing options...
Randy Rhoads Posted September 7, 2004 Author Share Posted September 7, 2004 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 FormatYes = would FormatNo = goto DriveDrive 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 More sharing options...
Stanislavs Posted September 25, 2004 Share Posted September 25, 2004 Can anyone please teach me this stuff? Link to comment Share on other sites More sharing options...
CoffeeFiend Posted September 25, 2004 Share Posted September 25, 2004 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. Link to comment Share on other sites More sharing options...
Stanislavs Posted September 25, 2004 Share Posted September 25, 2004 So you can program stuff with DOS ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now