Help to disable CtrlC from batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
wasabipham87
Posts: 1
Joined: 06 Jun 2021 08:17

Help to disable CtrlC from batch

#1 Post by wasabipham87 » 06 Jun 2021 08:24

I created this batch for WinPE environment. The last one i used with SET /p work fined. But when i change the menthod input password to choice (auto accept without 'ENTER' to finish input), the problem is user can cancel batch with ctrl+C. Anyone can help me to DENY CtrlC from this.
Attachments
startnet.txt
(3.53 KiB) Downloaded 317 times

Jedininja
Posts: 25
Joined: 11 Jan 2022 22:41
Location: CanafukpilesDa
Contact:

Re: Help to disable CtrlC from batch

#2 Post by Jedininja » 13 Jan 2022 21:36

wasabipham87 wrote:
06 Jun 2021 08:24
I created this batch for WinPE environment. The last one i used with SET /p work fined. But when i change the menthod input password to choice (auto accept without 'ENTER' to finish input), the problem is user can cancel batch with ctrl+C. Anyone can help me to DENY CtrlC from this.

Code: Select all

break

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Help to disable CtrlC from batch

#3 Post by aGerman » 14 Jan 2022 11:36

BREAK /?
...
This is present for Compatibility with DOS systems. It has no effect
under Windows.
...
We really appreciate any help of new volunteers. But answers should at least make any sense.

Steffen

Post Reply