Re: Batch Vorgang abbrechen, aber nicht schließen

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Cara Anima wrote:

Hi, gibt es eine Möglichkeit eine Batch abzubrechen, z.B. indem man ESC
drückt, aber die Batch soll nicht geschlossen werden wie bei stg+c,
sondern nur der aktuelle Vorgang (z.B. copy xyz). Danach soll das Script
weiterlaufen.

Ich versteh die Frage nicht, genau das ist doch das Standard-
Verhalten. Wenn du Ctrl-C drückst, fragt er "Batchvorgang abbrechen
(J/N)?", und wenn du "N" auswählst, läuft das Skript beim nächsten
Befehl weiter.

usch
.



Relevant Pages

  • (reposted) Question about CTRL-C handling in scripts
    ... I have a 'wrapper' script that sets up some environment variables and ... then executes another script, which then eventually runs a Fortran ... Then it requires a second <Ctrl-C> to exit this looping and return to ...
    (comp.unix.shell)
  • Interrupt Handling
    ... script while executing the particular sub will ignore the ctrl-c. ... But when i give the ctrl-c the process seems to be hanging and I ...
    (perl.beginners)
  • Cant ctrl-c to exit with DBI, DBD::Oracle
    ... Once my script connects to my database, ... I just can't exit when I'm done. ... use DBI; ... I'm able to interrupt the script with ctrl-c as I'd expect. ...
    (perl.dbi.users)
  • RE: Send CTRL-C to program started with WshShell.Exec method
    ... What I'm looking for is not a solution to stop the VB Script but a solution ... to stop defrag.exe in clean manner. ... >> can be stopped by pressing CTRL-C. ... It only stop when the defragmentation is finished or by pressing ...
    (microsoft.public.scripting.vbscript)
  • trap does not
    ... I'm trying to abort the execution of a scipt, ... Ctrl-C. ... So I put the 'trap' command at the beginning of the script, ...
    (comp.os.linux.misc)