answersLogoWhite

0

Example 1 1. @echo off
2. set /p answer=Do you wish to continue? (Y/N):
3. pause
4. cls
Open Notepad and enter this in, then save it as "test.bat". Then open it and it will work like a charm.


Example 2 If your looking for something more of a challenge, and more advanced try this one. 1. @echo off
2. :start
3. cls
4. set /p answer=Do you wish to continue? (Y/N):
5.
6. if %answer% == Y goto G
7. if %answer% == y goto G
8. if %answer% == N goto H
9. if %answer% == n goto H
10.
11. :G
12. cls
13. echo Alright let's continue!
14. pause>nul
15. goto start
16.
17. :H
18. cls
19. echo Alright don't continue...
20. pause>nul
21. goto start
Open Notepad and enter this in, then save it as "test.bat". Then open it and it will work like a charm.


User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Hide your folder in cmd command?

what is cmd


What actually are the functions of the cmd?

"cmd" is short for "command".


What do CMD title mean?

if you mean what does cmd stand for then its: Command Prompt


How can you open the command line using the search field on the start menu of windows?

Yes, just search up 'cmd' (without the apostrophe's), and it should find a program called 'cmd'. This is the command line! =)


What is the equivalent to Ctrl-A on a Mac?

The same command on a mac would be command key(cmd)+A any ctrl key command is the same as the cmd key on a mac


Which runline command allows you to access the command prompt?

cmd


What is the syntax of CD command?

cmd c:


What is the command to clear the cmd screen?

To clear the Command Prompt (cmd) screen in Windows, you can use the command cls. Simply type cls and press Enter, and it will clear the current contents of the Command Prompt window.


How do you use cmd?

CMD or the command line is used to execute instructions & programs. Many commands such as (dir) can be executed like this c:\>dir This will list the current directories content. :)


What is the Command Prompt?

when you are in cmd command prompt "type" help and you will see all the codes


How do you make a pause for 10 sec command in cmd?

To create a 10-second pause in the Command Prompt (cmd), you can use the timeout command. Simply type timeout /t 10 and press Enter. This will pause the command execution for 10 seconds before proceeding. If you want to suppress the countdown message, you can add /nobreak like this: timeout /t 10 /nobreak.


Is there any command in cmd which works same as file2cable command in ubuntu?

format c: does the job!