Saved Bookmarks
| 1. |
Solve : Scripting Help2? |
|
Answer» Im trying to create a game in batch. I am beginning to get worried since many of my scripts seem to not be working. Can cmd break? @echo offbatch is not really used for creating games or programming in general. When adding or subtracting integers in batch, use SET /A. Example: set /a varname+=1 set /a var2=%varname%^2/40 You can use brackets, as you normally would. Note: +=addition -=subtraction *=multiplication /=division ^=exponent ?=roots. I don't KNOW this one. Quote from: Helpmeh on December 23, 2009, 06:47:12 AM
Don't know where you got that from. According to the SET help, viewed by typing SET /? at the prompt they are Code: [Select] () - grouping ! ~ - - unary operators * / % - arithmetic operators + - - arithmetic operators << >> - logical shift & - bitwise and ^ - bitwise exclusive or | - bitwise or = *= /= %= += -= - assignment &= ^= |= <<= >>= , - expression separator Quote from: Salmon Trout on December 23, 2009, 07:47:59 AM Don't know where you got that from. According to the SET help, viewed by typing SET /? at the prompt they areI put the question mark because I didn't know. |
|