• BatchScript help!
    9 replies, posted
I am making a program :P it's almost done but i can't get one thing work right for donators.. they should get a code that i can send to them example. set /p number= if %number% 1234 goto donatortp But if you type like 52835341 it still goes to donatortp... Help please.
What kind of batch script are you writing where this is necessary?
[QUOTE=supersnail11;43644166]What kind of batch script are you writing where this is necessary?[/QUOTE] ??? All what i need is that when you type 1234 it will go to donatortp but if you type 425412514 it'll close like sumtin like if %number% any goto exit
[QUOTE=rojuslap;43644180]??? All what i need is that when you type 1234 it will go to donatortp but if you type 425412514 it'll close like sumtin like if %number% any goto exit[/QUOTE] yes but why do you need to implement this what use case does this fulfill why are people donating for a batch script why couldn't they just open up the script themselves and look at the number instead of donating why
[QUOTE=supersnail11;43644306]yes but why do you need to implement this what use case does this fulfill why are people donating for a batch script why couldn't they just open up the script themselves and look at the number instead of donating why[/QUOTE] bat2exe... [editline]23rd January 2014[/editline] [QUOTE=supersnail11;43644306]yes but why do you need to implement this what use case does this fulfill why are people donating for a batch script why couldn't they just open up the script themselves and look at the number instead of donating why[/QUOTE] Dude please, if you came here only asking "why" then please leave.
[QUOTE=rojuslap;43644338]bat2exe... [editline]23rd January 2014[/editline] Dude please, if you came here only asking "why" then please leave.[/QUOTE] I don't think you understand the purpose of batch scripts.
[QUOTE=supersnail11;43644613]I don't think you understand the purpose of batch scripts.[/QUOTE] I don't think you know what a "BatchScript" is
Dude, batch scripts are for automating simple tasks on windows. They're not for making full scale donation systems. Also not everyone uses windows, some people use OS X or Linux. I seriously recommend trying to develop something in PHP and if you don't know enough PHP try to find/pay someone that does. If you really want a donation system there was a script on Coderhire that I can't quite find right now.
This sounds super easy to make w/ C++ too.
[QUOTE=JRODISME;43654907]Dude, batch scripts are for automating simple tasks on windows. They're not for making full scale donation systems. Also not everyone uses windows, some people use OS X or Linux. I seriously recommend trying to develop something in PHP and if you don't know enough PHP try to find/pay someone that does. If you really want a donation system there was a script on Coderhire that I can't quite find right now.[/QUOTE] This is one of those cases where PHP actually is a better solution. Hold on, I need to write this one down. [editline]26th January 2014[/editline] The batch syntax for doing what you want is [code] set x=1234 set y=4321 if %x% equ %y% echo %x% is equal to %y% [/code] Although like people have said, don't use batch :v:
Sorry, you need to Log In to post a reply to this thread.