Autor Beitrag
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Di 03.11.15 12:22 
Hallo zusammen,

heute mal eine Batchfrage: wird man die Meldung "Batchvorgang abbrechen", die nach gedrücktem Ctrl-C kommt, irgendwie los?

Hintergrund ist, dass ich hier ein Aufrufskript für ein Programm hab, was eigentlich nur einen Kommandozeilenparameter vorbelegt:
ausblenden lammps.cmd
1:
@lmp_serial -sf omp %*					

Wenn ich jetzt die Berechnung (also lmp_serial) mit Ctrl-C abbreche, sieht Windows das nicht einfach als Programmende sondern stellt nochmal die bewusste Frage. Macht aber an der Stelle keinen Sinn, und ich würde die "aus ästhetischen Gründen" gerne loswerden.

OS ist Win10, aber Antworten ab 8 aufwärts nehm ich auch ;)

Die Frage wird immer mal wieder gestellt, aber zumindest auf den ersten 2 Seiten meiner Googlesuche hat keiner der Antwortenden die Frage auch nur ansatzweise verstanden.


Danke,
Martok

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
Nersgatt
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1581
Erhaltene Danke: 279


Delphi 10 Seattle Prof.
BeitragVerfasst: Di 03.11.15 12:34 
Früher, also weit im letzten Jahrtausend, als ich noch jung und knackig war, zur DOS-Zeit, kurz nachdem die Dinos ausgestorben sind, hat man Vorbelegungen von Parametern mit DOSKEY.com gemacht. Damit kannst Du Makros anlegen und musst nicht mit Batchdateien arbeiten. Keine Ahnung, ob es das heute noch gibt.

Edit: Grade ausprobiert: Doskey gibt es auch in Neuzeit noch. Also mach aus Deinem Batch mal ein Makro. :wink:

_________________
Gruß, Jens
Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du. (Mahatma Gandhi)

Für diesen Beitrag haben gedankt: Martok
Martok Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Di 03.11.15 13:45 
Gute Idee, könnte für die Anwendung sogar gradeso reichen, weil hier wohl keine der Einschränkungen treffen wird.

Aber keine Pipes und nur interaktiv aufrufbar ist ansonsten schon ein Problem...

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."