delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/11/05/05:00:36

Message-Id: <s460432f.067@calderauk.com>
Date: Wed, 05 Nov 1997 09:57:51 +0000
From: Matthias Paul <MPaul AT calderauk DOT com>
To: paul-ma AT reze-1 DOT rz DOT rwth-aachen DOT de, evand AT scn DOT org
Cc: opendos AT delorie DOT com
Subject: Re: questions.
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019