Jul 2, 2025
Оfftopic Community
Оfftopic Community
Forums
New posts
Search forums
What's new
Featured content
New posts
New media
New media comments
New resources
New profile posts
Latest activity
Media
New media
New comments
Search media
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
OnTopic Community
Trivia & Polls
Im Making A Small Quiz Batch File, Whats Wrong With This One?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="calvinertoinwasinggerton" data-source="post: 2609949" data-attributes="member: 886415"><p>this is my script, it says "goto is not expected here" as the error :\</p><p></p><p>@echo off</p><p></p><p>echo -------</p><p>echo :Hello:</p><p>echo -------</p><p>echo \/</p><p>echo Please Only Awnser:</p><p>echo yes</p><p>echo Or</p><p>echo no</p><p>echo /\</p><p>echo Thank you for using my Quiz Game!</p><p>pause</p><p>cls</p><p>set /p awnser = is 1 plus 1 equal to 2?</p><p>cls</p><p>if %awnser% == no goto :Wrong</p><p>if %awnser% == yes goto :Q2</p><p>echo You Didn't Awnser yes or no, Start again!</p><p>pause</p><p>cls</p><p>exit</p><p></p><p>:Wrong</p><p>cls</p><p>echo You Got The Question Wrong <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f641.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":(" title="Frown :(" data-smilie="3"data-shortname=":(" /></p><p>echo Start The Program Again To Play Again <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":)" title="Smile :)" data-smilie="1"data-shortname=":)" /></p><p>pause</p><p>cls</p><p>exit</p><p></p><p>:Q2</p><p>cls</p><p>echo Well, Thats The Quiz So Far!</p><p>pause</p><p>cls</p><p>exit</p></blockquote><p></p>
[QUOTE="calvinertoinwasinggerton, post: 2609949, member: 886415"] this is my script, it says "goto is not expected here" as the error :\ @echo off echo ------- echo :Hello: echo ------- echo \/ echo Please Only Awnser: echo yes echo Or echo no echo /\ echo Thank you for using my Quiz Game! pause cls set /p awnser = is 1 plus 1 equal to 2? cls if %awnser% == no goto :Wrong if %awnser% == yes goto :Q2 echo You Didn't Awnser yes or no, Start again! pause cls exit :Wrong cls echo You Got The Question Wrong :( echo Start The Program Again To Play Again :) pause cls exit :Q2 cls echo Well, Thats The Quiz So Far! pause cls exit [/QUOTE]
Insert quotes…
Name
Verification
Please enable JavaScript to continue.
Loading…
Post reply
Top