Subversion Repositories SvarDOS

Rev

Rev 200 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 200 Rev 203
Line 673... Line 673...
673
  setenv("TEMP", buff, 1);
673
  setenv("TEMP", buff, 1);
674
  snprintf(buff, sizeof(buff), "%c:\\COMMAND.COM", targetdrv);
674
  snprintf(buff, sizeof(buff), "%c:\\COMMAND.COM", targetdrv);
675
  setenv("COMSPEC", buff, 1);
675
  setenv("COMSPEC", buff, 1);
676
  snprintf(buff, sizeof(buff), "%c:\\SYSTEM\\CFG\\FDNPKG.CFG", targetdrv);
676
  snprintf(buff, sizeof(buff), "%c:\\SYSTEM\\CFG\\FDNPKG.CFG", targetdrv);
677
  setenv("FDNPKG.CFG", buff, 1);
677
  setenv("FDNPKG.CFG", buff, 1);
678
  /* copy pkginst to the new drive so it is not read from floppy each time I need it */
678
  /* copy pkginst to the new drive so it is not read from the floppy each time */
679
  snprintf(buff, sizeof(buff), "COPY %c:\\FDINST.EXE %c:\\ > NUL", cdromdrv, targetdrv);
679
  snprintf(buff, sizeof(buff), "COPY A:\\FDINST.EXE %c:\\ > NUL", targetdrv);
680
  system(buff);
680
  system(buff);
681
  /* change current drive to target so I use the on-hdd fdinst from now on */
681
  /* change current drive to target so I use the on-hdd fdinst from now on */
682
  if (set_cur_drive(targetdrv) != 0) {
682
  if (set_cur_drive(targetdrv) != 0) {
683
    video_putstring(10, 30, COLOR_BODY[mono], "ERROR: CHANGING DRIVE TO TARGET FAILED", -1);
683
    video_putstring(10, 30, COLOR_BODY[mono], "ERROR: CHANGING DRIVE TO TARGET FAILED", -1);
684
    input_getkey();
684
    input_getkey();