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.
what is cmd
"cmd" is short for "command".
if you mean what does cmd stand for then its: Command Prompt
Yes, just search up 'cmd' (without the apostrophe's), and it should find a program called 'cmd'. This is the command line! =)
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
cmd
cmd c:
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. :)
when you are in cmd command prompt "type" help and you will see all the codes
format c: does the job!
when you are in cmd command prompt "type" help and you will see all the codes
Ubuntu has a command interface, Its called a terminal