Search found 58 matches
- 29 Aug 2014 20:20
- Forum: DOS Batch Forum
- Topic: Batch inString()-like function?
- Replies: 6
- Views: 5463
Re: Batch inString()-like function?
Thank you. I shall use this whenever I can.
- 28 Aug 2014 10:15
- Forum: DOS Batch Forum
- Topic: Batch inString()-like function?
- Replies: 6
- Views: 5463
Re: Batch inString()-like function?
foxidrive wrote:What character sets does it have to support?
I only need it to support ASCII characters 32-127.
- 28 Aug 2014 09:05
- Forum: DOS Batch Forum
- Topic: Batch inString()-like function?
- Replies: 6
- Views: 5463
Batch inString()-like function?
I have searched for a long time for a function meeting my needs, but I haven't found it yet. Is there a function that allows you to search for a substring or character in another string, and that returns the position of the first occurrence of the string? Example: set original=abcdefghij set substri...
- 08 Jul 2014 15:50
- Forum: DOS Batch Forum
- Topic: BrainF*** Interpreter in Batch
- Replies: 61
- Views: 41653
Re: BrainF*** Interpreter in Batch
I almost forgot, sorry about that. Post edited.
- 08 Jul 2014 14:22
- Forum: DOS Batch Forum
- Topic: BrainF*** Interpreter in Batch
- Replies: 61
- Views: 41653
BrainF*** Interpreter in Batch
As probably many have done before, I have proven Batch's Turing-completeness by making a BrainF*** interpreter in Batch. I need to work a lot more on this, definitely. Rewrite the input system, for example. And make it faster. But it is fully functional! BrainF*** (for posterity, I have censored the...
- 07 Jul 2014 10:13
- Forum: DOS Batch Forum
- Topic: Quick Question about File Reading
- Replies: 5
- Views: 4440
Re: Quick Question about File Reading
Well, that's nice, I gotta say. And thank you; I will not need to search for exclamation marks.
- 06 Jul 2014 12:56
- Forum: DOS Batch Forum
- Topic: Quick Question about File Reading
- Replies: 5
- Views: 4440
Re: Quick Question about File Reading
The actual scope of the file would be useful information, like so: One line, 3000 characters? Twenty lines, 40 characters each? Are any of the characters Unicode or Non-Latin characters? Well, it can vary. There could be one line with 3000 characters, there could be multiple lines with any amount o...
- 06 Jul 2014 11:43
- Forum: DOS Batch Forum
- Topic: Quick Question about File Reading
- Replies: 5
- Views: 4440
Quick Question about File Reading
Is there a way to read a file character by character and put each character in an array if it is any of a few certain characters? For example, if the file is: This, i[s a.tes t-c< as] e. and the only allowed characters are in the string "+-<>.,[]", the expected contents of an array "c...
- 06 Jul 2014 10:00
- Forum: DOS Batch Forum
- Topic: 2048 for Batch
- Replies: 12
- Views: 11698
Re: 2048 for Batch
For me, it had 6. Just sayin'.
But anyways, it's out and functional, so I don't care much anyways.
But anyways, it's out and functional, so I don't care much anyways.
- 05 Jul 2014 13:57
- Forum: DOS Batch Forum
- Topic: 2048 for Batch
- Replies: 12
- Views: 11698
Re: 2048 for Batch
carlos: It had 6. I counted.
Also, bump.
I updated the game to include the few suggestions you made. No new pic, though.
Also, bump.
I updated the game to include the few suggestions you made. No new pic, though.
- 05 Jul 2014 10:34
- Forum: DOS Batch Forum
- Topic: 2048 for Batch
- Replies: 12
- Views: 11698
Re: 2048 for Batch
Quotes needed. Noted.
- 04 Jul 2014 12:06
- Forum: DOS Batch Forum
- Topic: Batch function help?
- Replies: 45
- Views: 28985
Re: Batch function help?
I actually think I could stand to make two versions if I have to: one regular and readable, and one golfed. But for right now, I just want it to work. It does in its current state, so thank you. I'll credit all of you in my project (it involves this).
- 04 Jul 2014 11:54
- Forum: DOS Batch Forum
- Topic: 2048 for Batch
- Replies: 12
- Views: 11698
Re: 2048 for Batch
foxidrive, what OS are you using? I don't know why that problem should be occurring.
dbenham, how about putting "Tested and tweaked by the DOSTips.com community" at the bottom?
dbenham, how about putting "Tested and tweaked by the DOSTips.com community" at the bottom?
- 03 Jul 2014 19:26
- Forum: DOS Batch Forum
- Topic: Batch function help?
- Replies: 45
- Views: 28985
Re: Batch function help?
The if command has the /i case insensitive switch which is useful. for %%h in (A E I L N O R S T U) do if /i !j!==%%h set /a $+=1 for %%h in (D G) do if /i !j!==%%h set /a $+=2 for %%h in (B C M P) do if /i !j!==%%h set /a $+=3 for %%h in (F H V W Y) do if /i !j!==%%h set /a $+=4 for %%h in (K) do ...
- 03 Jul 2014 19:09
- Forum: DOS Batch Forum
- Topic: 2048 for Batch
- Replies: 12
- Views: 11698
2048 for Batch
After a ton of testing and tweaking, the first official release is here! ( modedit see here for the development thread http://www.dostips.com/forum/viewtopic.php?f=3&t=5701 ) http://i.imgur.com/u5c6go8.png At 5,248 bytes, this packs a lot of features in a relatively small package! (Sure, it's no...