home *** CD-ROM | disk | FTP | other *** search
/ CICA 1996 August / CICA1_0896.bin / _bbs / wc30 / ins.bat < prev    next >
DOS Batch File  |  1995-01-11  |  2KB  |  40 lines

  1. @echo       Which cdrom drive letter?  If this is not right, this install
  2. @echo       will NOT work.   (You need the ':' after the letter, also.)
  3. set cdrom=e:
  4. @echo       What is your data directory name?
  5. @echo       (The default is 'data', which I also use.)
  6. set datadir=data
  7. @echo       If these aren't right, ^c and edit this file using a text editor.
  8. pause
  9. rem ---------------- below shouldn't need edited -----------------
  10. if not exist %cdrom%\_bbs\wc30\install.exe goto error
  11. @echo Making backup files.
  12. copy %datadir%\allfiles.dat %datadir%\allfiles.da2
  13. copy %datadir%\allfiles.ix  %datadir%\allfiles.ix2
  14. copy filearea.dat filearea.da2
  15. copy makewild.dat makewild.da2
  16. %cdrom%\_bbs\wc30\install %1
  17. if not errorlevel 1 goto ok
  18. @echo  Error exit -- restoring original datafiles
  19. copy filearea.dat filearea.err
  20. copy filearea.da2 filearea.dat
  21. copy makewild.dat makewild.err
  22. copy makewild.da2 makewild.dat
  23. goto end
  24. :ok
  25. @echo Check the file areas with makewild.  (Just to see what happened.)
  26. pause
  27. makewild
  28. @echo The install program created a batch file called 'install2'.
  29. @echo You can change wcfiles options by editing this file.
  30. @echo Then execute the batch file by typeing 'install2'.
  31. @echo When you are done, you can check wcfile.log to see exactly what wcfile
  32. @echo thinks happened.
  33. goto end
  34. :error
  35. @echo I don't think you have the right cdrom drive letter where my cdrom is
  36. @echo located.  I couldn't find my install program on the ''%cdrom%'' drive
  37. @echo you said was your cdrom.  Edit this file and put the right cdrom drive
  38. @echo letter in.
  39. :end
  40.