Mail Archives: opendos/1997/11/05/05:00:36
On 97/11/04 Even replied to sb1 :
>> 2. The copy command in ms dos has a prompt to overwrite files if they
>> exist.
>> The /y switch is used. Will opendos support the /y switch.
>> I don't like ms dos prompting me but the batch file written for ms dos
>> will not work
>> with caldera because it says invalid switch.
>
>echo y | copy blah blah blah
>
>This will feed 'y' and a return to the copy command. In effect, hitting y
>for you.
Unfortunately, this method only works in the language the batchjob has
been written for (that is English here). It will hang the system unbreakable
in other countries. Actually, this is why I would like to introduce enhanced OpenDOS language/country support somewhen in the future (see NLSFUNC.TXT from IBMBIOA3.ZIP).
Sometimes a workaround is to place all (known) Yes-chars in the
ECHO statement, sometimes a special order of appearance is
required, and this sometimes depends on the command for which it is
used (details in NWDOSTIP.TXT from my MPDOSTIP.ZIP). But this also
depends on the command processor, and at the moment there is
no general solution for such type of problems.
Matthias
------------------------------------------------------------
Matthias Paul
eMail: <Matthias DOT Paul AT post DOT rwth-aachen DOT de>
Web: http://www.rhrz.uni-bonn.de/~uzs180/mpdokeng.html
- Raw text -