Search found 503 matches
- 17 Nov 2012 17:01
- Forum: DOS Batch Forum
- Topic: [BatchGame] SokoBox
- Replies: 9
- Views: 11323
[BatchGame] SokoBox
http://i1281.photobucket.com/albums/a514/carlosmon99/sokobox-small_zps2062e82f.png This is a batch game. sokobox.cmd @Echo off ::SokoBox ::Version: 1.0.8 ::Author: Carlos. ::Uses BG.exe v2.5 (built-in) SetLocal EnableExtensions EnableDelayedExpansion Cls If Not Exist BG.exe Call :BuildBG Color 37 B...
- 15 Nov 2012 20:31
- Forum: DOS Batch Forum
- Topic: Generate nearly any character, including TAB, from batch
- Replies: 15
- Views: 45900
Re: Generate nearly any character, including TAB, from batch
This is a similar implementation: @ECHO OFF :HexPrint SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION FOR /F delims^=^ eol^= %%# in ( 'FORFILES /m "%~nx0" /c "%ComSpec% /cECHO(%~1"' ) Do (Echo(%%#) GOTO :EOF I look that the x should be in lowe case and the number in a width of t...
- 15 Nov 2012 20:03
- Forum: DOS Batch Forum
- Topic: ECHO. FAILS to give text or blank line - Instead use ECHO/
- Replies: 44
- Views: 214480
Re: ECHO. FAILS to give text or blank line - Instead use ECH
The info is very util. Thanks.
- 15 Nov 2012 13:20
- Forum: DOS Batch Forum
- Topic: Rules for how CMD.EXE parses numbers
- Replies: 41
- Views: 171398
Re: Rules for how CMD.EXE parses numbers
Very interesting post Dave. Only a little info, in for /f In tokens and skip options any value <=0 do a error. Internally default values are: tokens=1 skip=0 then you can be redundant in tokens, using tokens=1 but you cannot redundant in skip. You cannot write skip=0 any value <=0 do a error. Only i...
- 21 Aug 2010 17:27
- Forum: DOS Batch Forum
- Topic: [Functional code] Convert decimal number to hexadecimal
- Replies: 9
- Views: 11216
Re: [Functional code] Convert decimal number to hexadecimal
Thanks for comments.
Anyways, this is a forum of dos batch.
Anyways, this is a forum of dos batch.
- 21 Aug 2010 12:59
- Forum: DOS Batch Forum
- Topic: [Functional code] Convert decimal number to hexadecimal
- Replies: 9
- Views: 11216
Re: [Functional code] Convert decimal number to hexadecimal
Thanks for your comments. I added this note: Note: Only works fine with positive 32 bits signed integer numbers. This is from: 0 to 2147483647 that is the maximal number that you can catch with set /a command, really the maximal number is 4294967295 but this number exceed the limit of set /a that is...
- 20 Aug 2010 14:05
- Forum: DOS Batch Forum
- Topic: [Batch Game] Tic Tac Toe Trainer 1.0
- Replies: 2
- Views: 5168
[Batch Game] Tic Tac Toe Trainer 1.0
Maybe a perfect game of tic tac toe in batch. Play with mouse. @Echo Off ::Tic Tac Toe Trainer v1.0 ::Author: Carlos :Global SetLocal EnableExtensions EnableDelayedExpansion Set "b.s.-1=O" & Set "b.s.0= " & Set "b.s.1=X" Set/a "e.f.1=7,e.f.7=1,e.f.3=5,e.f.5...
- 20 Aug 2010 14:04
- Forum: DOS Batch Forum
- Topic: [Functional code] Convert decimal number to hexadecimal
- Replies: 9
- Views: 11216
[Functional code] Convert decimal number to hexadecimal
This code convert decimal number to hexadecimal. This code is really fast and short, it use a undocumented variable of cmd. Note: Only works fine with positive 32 bits signed integer numbers. setlocal enabledelayedexpansion set "hex_values=0123456789ABCDEF" set "hex=" set /a &quo...