Mail Archives: opendos/2001/08/16/03:59:22
Donald wrote:
>> Internal COMMAND.COM commands doesn't change errorlevel. :-(
>
> Hmmm, that sounds like a strange thing to do.
Copy works this way in MS-DOS before version 6 as well, I'm not entirely
sure about it being version 6 but it was like that in earlier versions anyway.
>> But in this case solution exist:
>>
>> if not exist %1 goto nofile
>> copy %1
>
> Okay, I'll try it that way. Not sure why I didn't think of that myself.
>Thanks.
Yes, what Arkady suggest should work without problem. IIRC one interesting
thing about copy in MS-DOS (I don't know if DR-DOS is the same) is that
empty files aren't copied.
//Bernie
- Raw text -