Hi.

I would like to know about how you program a command that forces an operation. For instance, the command window might prompt the user of something that they already know, rather than bothering to hit Y and enter, it does it for them, forces the operation.

Thanks

I suppose one way is the first time you ask allow them to type 'Y', 'N', "YES", or "NO". If they type "YES" then assume the answer to all future questions will be 'Y', and if they type "NO" the answer would be 'N' to all further questions.

Yeah, I guess that's one way of doing it. Do have any knowledge otherwise?

>>Do have any knowledge otherwise?
Nope. I have seen my suggestion used in other programs.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.