RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
need some help...(.BATCH FILE~!!!.)

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 85
A RMRK newby/nub cake
so i've been using batch for a while now, and i don't know why, but this use  to work, now it won't!

after you enter your name, it exits, it used to work this way, but i think i'm forgetting something

i think i'm forgetting something(i know it's not complete)

Code: [Select]
echo off
cls
color F6
:MENU
echo Hello.
set /p name=Enter your name.
set /p input=Are you sure? Y/N 
if %input%==Y goto NAMEE
if %input%==N goto MENU
goto MENU
:NAMEE
cls
echo Hello %name%.  How are you? fine/sad
if %m%==fine goto FINE
if %m%==sad goto SAD
:FINE
echo Very good then, how about we play a game? Y/N
if %m%==Y goto GAME
if %m%==N exit
:SAD
echo Why?  Is it because your playing this?
echo Then let's play a game! Y/N
if %m%==Y goto GAME
if %m%==N exit
:GAME
cls
echo We will play a dungeon game. :]
echo Now you are the dot.
echo |  |   ||||||||||
echo |  | . ||||||||||
echo |_______________|
echo
echo Do you want to go north?
"Son, where is the nearest wal-mart?"
"http://www.justfuckinggoogleit.com/ you tard!"

My pokemon brings all the geeks to the yard...
Yeah...it's stuck in my head too...

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
I think you need to put inverted commas around your strings. So replace:

Code: [Select]
if %input%==Y goto NAMEE
if %input%==N goto MENU

With:

Code: [Select]
if "%input%"=="Y" goto NAMEE
if "%input%"=="N" goto MENU


**
Rep:
Level 85
A RMRK newby/nub cake
I think you need to put inverted commas around your strings. So replace:

Code: [Select]
if %input%==Y goto NAMEE
if %input%==N goto MENU

With:

Code: [Select]
if "%input%"=="Y" goto NAMEE
if "%input%"=="N" goto MENU



no, that doesn't work, quotes aren't needed after == unless specified 
"Son, where is the nearest wal-mart?"
"http://www.justfuckinggoogleit.com/ you tard!"

My pokemon brings all the geeks to the yard...
Yeah...it's stuck in my head too...

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Well, I put it in and it seems to work.

Btw, are you getting a syntax error?

**
Rep:
Level 85
A RMRK newby/nub cake
Well, I put it in and it seems to work.

Btw, are you getting a syntax error?
no, it just quits :/

i am going to fix it D: it will take kinda forever...because my computer did have a porn virus because someone left a fishing website up for 2 months (my dad never turned it off because the monitor was burnt) so :D time to fix it!
"Son, where is the nearest wal-mart?"
"http://www.justfuckinggoogleit.com/ you tard!"

My pokemon brings all the geeks to the yard...
Yeah...it's stuck in my head too...

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
It's probably because you don't have any input sets after the first one, so it just echoes what's left and then quits. If that's not it, then I don't see what's wrong with it.

**
Rep:
Level 85
A RMRK newby/nub cake
It's probably because you don't have any input sets after the first one, so it just echoes what's left and then quits. If that's not it, then I don't see what's wrong with it.
i'm going to try to dumb it down
"Son, where is the nearest wal-mart?"
"http://www.justfuckinggoogleit.com/ you tard!"

My pokemon brings all the geeks to the yard...
Yeah...it's stuck in my head too...

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!

**
Rep:
Level 85
A RMRK newby/nub cake
It's probably because you don't have any input sets after the first one, so it just echoes what's left and then quits. If that's not it, then I don't see what's wrong with it.
sorry for bump, but i fixed it :D
the input was what i was missing

echo off
cls
:MENU
echo Hello.
set /p name=Enter your name.
set /p input=Are you sure? Y/N
if %input%==Y goto NAMEE
if %input%==N goto MENU
goto MENU
:NAMEE
cls
echo Hello %name%.  How are you? fine/sad
set /p m=
if %m%==fine goto FINE
if %m%==sad goto SAD
:FINE
echo Very good then, how about we play a game? Y/N
set /p m=
if %m%==Y goto GAME
if %m%==N exit
:SAD
echo Why?  Is it because your playing this?
echo Then let's play a game! Y/N
set /p m=
if %m%==Y goto GAME
if %m%==N exit
"Son, where is the nearest wal-mart?"
"http://www.justfuckinggoogleit.com/ you tard!"

My pokemon brings all the geeks to the yard...
Yeah...it's stuck in my head too...

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!