Subversion Repositories SvarDOS

Rev

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

Rev 533 Rev 538
Line 52... Line 52...
52
  }
52
  }
53
 
53
 
54
  /* convert src to truename format */
54
  /* convert src to truename format */
55
  i = file_truename(p->argv[0], src);
55
  i = file_truename(p->argv[0], src);
56
  if (i != 0) {
56
  if (i != 0) {
57
    outputnl(doserr(i));
57
    nls_outputnl_doserr(i);
58
    return(CMD_FAIL);
58
    return(CMD_FAIL);
59
  }
59
  }
60
 
60
 
61
  /* copy src path to buffers and remember where the filename starts */
61
  /* copy src path to buffers and remember where the filename starts */
62
  fnameoffset = 0;
62
  fnameoffset = 0;
Line 81... Line 81...
81
  }
81
  }
82
 
82
 
83
  /* apply truename to dest to normalize wildcards into ? chars */
83
  /* apply truename to dest to normalize wildcards into ? chars */
84
  i = file_truename(buff1, dst);
84
  i = file_truename(buff1, dst);
85
  if (i != 0) {
85
  if (i != 0) {
86
    outputnl(doserr(i));
86
    nls_outputnl_doserr(i);
87
    return(CMD_FAIL);
87
    return(CMD_FAIL);
88
  }
88
  }
89
 
89
 
90
  /* we're good to go, src and dst should look somehow like that now:
90
  /* we're good to go, src and dst should look somehow like that now:
91
   * src   =   C:\TEMP\PATH\FILE????.TXT
91
   * src   =   C:\TEMP\PATH\FILE????.TXT
Line 99... Line 99...
99
   * the destination file (with ?'s replaced by whatever is found at the same
99
   * the destination file (with ?'s replaced by whatever is found at the same
100
   * location in buff1).
100
   * location in buff1).
101
   */
101
   */
102
 
102
 
103
  i = findfirst(dta, src, 0);
103
  i = findfirst(dta, src, 0);
104
  if (i != 0) outputnl(doserr(i));
104
  if (i != 0) nls_outputnl_doserr(i);
105
 
105
 
106
  while (i == 0) {
106
  while (i == 0) {
107
    /* write found fname into buff1 and dst fname into buff2 - both in FCB
107
    /* write found fname into buff1 and dst fname into buff2 - both in FCB
108
     * format (MYFILE  EXT) so it is easy to compare them */
108
     * format (MYFILE  EXT) so it is easy to compare them */
109
    file_fname2fcb(buff1 + fnameoffset, dta->fname);
109
    file_fname2fcb(buff1 + fnameoffset, dta->fname);
Line 151... Line 151...
151
    if (i != 0) {
151
    if (i != 0) {
152
      output(buff1 + fnameoffset);
152
      output(buff1 + fnameoffset);
153
      output(" -> ");
153
      output(" -> ");
154
      output(buff2 + fnameoffset);
154
      output(buff2 + fnameoffset);
155
      output("  ");
155
      output("  ");
156
      outputnl(doserr(i));
156
      nls_outputnl_doserr(i);
157
    }
157
    }
158
    /* next please */
158
    /* next please */
159
    i = findnext(dta);
159
    i = findnext(dta);
160
  }
160
  }
161
 
161