answersLogoWhite

0

Try:

@echo off

title Enter close code

:start

SET /P ANSWER=Close code:

if /i {%ANSWER%}=={1234} (goto :yes)

goto :start

:yes

echo I will now close please continue

pause

exit

-------

So the code is 1234 on there

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is a Batch process?

"Batch processing" refers to the execution of multiple commands on a computer. Batch jobs are often used to automate a process which needs to be done on many files, since they do not typically need user input once started.


What is batch data processing mode?

Batch processing generally means using a scripting language to queue one or more jobs that will work one after the other without any manual intervention. That is, the actual processing is automated, the only input required from the user is in order to set up the batch. Contrast with online or interactive data processing which requires user-input throughout the process. In batch processing, the input is typically generated from input files collated as a batch, and the output of one job can often be used as input for the next job, dependant upon the type of processing. Some software includes batch processing modes of their own, but for those that don't, command sequences can be crafted using scripting languages, either from within the program itself (where supported) or externally at operating system level. Operating system command scripts can also be employed for batch processing, hence they are also known as batch files.


What are subroutines and are they used in batch files scripts neither or both?

Subroutines are code blocks that can be called from anywhere in your code where the subroutine is within the scope of the caller. They are not used in batch files or command scripts, but they may be emulated by calling one batch file from another and waiting for the external call to return, which may (optionally) return an error level which can be tested by the caller. Subroutines can be used in other scripts, including vbscript and javascript. Subroutines may also be called functions or procedures depending on the type of script.


How do you add comments in batch files?

Anytime you wish to create any type of remark in a batch file rem must be added in front of the line. Remarks are often used to skip a line in the batch file or make comments.


How do you Launch INF File from a batch file?

I would suggest typing in: start <nameofthefile>.INF and make sure that you have a program that is set up to defaultly open INF files.

Related Questions

How can you open a separate program with Batch files and then close that program with Batch?

Batch file that opens a program waits 5 seconds then closes that program. For some reason I cannot get this batch to perform the open portion, wait, then the close portion in .... startup batch file hangs up on second command.


What is batch converter?

A batch converter is a tool that converts several files simultaneously to one format. These can be files or any data.


What are batch files used for?

batch files are used to run a series of commands at once. people who work on computers daily and have a series of files or programs to start and command to run often create a batch file to do it automatically and save time.


What are batch files?

Batch files are text files containing a series of commands to execute set of commands or run programs in a sequence. Batch files are like a script which, instead of entering and running individual commands are useful in saving time and executing programs even when computer user is not present. Batch files are useful for repetitive tasks (you do not need to enter all the commands every time you repeat the task). MS-DOS and Windows batch files end with .bat extension.


How do you remove hidden files from a CD?

Unless the CD is re-writeable you cannot


When making a batch file how can one disable the close box?

If you are talking about the little red "X" mark on the batch window and you want to disable it so someone cannot close it, then there is no possible way to do that. The batch file scripts are very simple and cannot go as far as to disable a close button. Anyway, the person can easily exit the batch with the Ctrl + C combination. Plus, if that feature is allowed in batch files, you can run a lot of nasty stuff in there as the user cannot stop it, so that's not a option for your virus.


Are Linux script files the same as Windows dos batch files?

More or less.


How do you remove hidden and useless files fro?

you cannot delete unless it is cd-rw


How do you convert a batch many files of pdf files to pdf ocr?

Try a PDF editor...


How can I batch convert NEF files to JPG format?

To batch convert NEF files to JPG format, you can use software like Adobe Lightroom or a free online converter tool. Simply select the NEF files you want to convert, choose JPG as the output format, and run the batch conversion process.


What are the dos files?

Dos files are the files with the extension .bat which are used for programming in DOS. This is also called as batch file programming.


How can I efficiently process multiple audio files at once using Adobe Audition's batch processing feature?

To efficiently process multiple audio files at once using Adobe Audition's batch processing feature, you can create a batch process script that includes the desired effects and settings for all the files. Then, you can select the files you want to process, apply the batch process script to them, and let Adobe Audition automatically apply the effects to all the selected files simultaneously. This saves time and ensures consistency across all the audio files.