I have added comments.
einstein1969
Search found 941 matches
- 05 Feb 2014 18:19
- Forum: DOS Batch Forum
- Topic: ANY2BAT BASE85
- Replies: 4
- Views: 4996
- 05 Feb 2014 17:24
- Forum: DOS Batch Forum
- Topic: modern reply.exe created using only batch
- Replies: 19
- Views: 20961
Re: modern reply.exe created using only batch
carlos wrote:@einstein1969: the base used is 16 with rle that uses [number] that means repetition of characters.
Hi Carlos,
Here you can see what I mean. It 's a starting point.
einstein1969
- 05 Feb 2014 16:44
- Forum: DOS Batch Forum
- Topic: ANY2BAT BASE85
- Replies: 4
- Views: 4996
ANY2BAT BASE85
Hi to all, I started a bath to include any file in BAT, or other compatible with the chosen dictionary. This uses base85 characters that seem not to cause problems. (I'm no expert in this!) For compressed files the ratio of wasted space is quite low. I tested on GetInput.exe.cab 566 bytes and the ou...
- 04 Feb 2014 13:38
- Forum: DOS Batch Forum
- Topic: Drawing pixel resolution graphics in text mode
- Replies: 25
- Views: 48500
Re: Drawing pixel resolution graphics in text mode
Hi Antonio, The work done with the font is gigantic and fantastic! I'm surprised your ability to synthesize and speed of execution. I, unfortunately I have not yet mastered what have you and go slow with color management. Now I'm working on the luminance and the distribution of pixels, an old job I ...
- 04 Feb 2014 13:13
- Forum: DOS Batch Forum
- Topic: slice.cmd
- Replies: 9
- Views: 9334
Re: slice.cmd
@einstein1969: skip less or equal to 0 fail. instead of this: set /A #=%b%-1 For /f "skip=%#% maybe some like this will work: set "skip=" if %b% gtr 1 set /A "skip=%b%-1" if defined skip set "skip=skip=%skip%" For /f "skip=%skip% Thanks, I see. now works. ein...
- 03 Feb 2014 18:01
- Forum: DOS Batch Forum
- Topic: slice.cmd
- Replies: 9
- Views: 9334
Re: slice.cmd
the trick is simple. I'm using temporary file istead execute the findstr in the for /F added: set "tmp_file=%tmp%\slice_%random%_%random%.dat" Findstr /n "^" "%~dpf1">%tmp_file% and substitute this For /f "delims=" %%$ In ('Findstr /n "^" "%~dpf...
- 03 Feb 2014 12:00
- Forum: DOS Batch Forum
- Topic: slice.cmd
- Replies: 9
- Views: 9334
Re: slice.cmd
Hi Sponge Belly and Carlos, I have tested on 700kb about and there are about 7 seconds of delay. With a file of 1.2MB the time is about 20 seconds. For higher size the time increase exponentially. I have a 16Mb text file and the time is over five minutes. I have break before finish. This version is ...
- 03 Feb 2014 06:24
- Forum: DOS Batch Forum
- Topic: modern reply.exe created using only batch
- Replies: 19
- Views: 20961
Re: modern reply.exe created using only batch
why rle encoding? Using base encoding is much better einstein1969 Why is it better? Does it compress recurring bytes also? I'm sorry, I meant that a file already compressed (carlos uses makecab normally) if passed to another base (higher base is better) has less wasted space than using a low base +...
- 03 Feb 2014 05:29
- Forum: DOS Batch Forum
- Topic: modern reply.exe created using only batch
- Replies: 19
- Views: 20961
Re: modern reply.exe created using only batch
carlos wrote:.. Also, I like much the rle encoding, that in combination with cabinet file, can reduce the hex data length.
why rle encoding? Using base encoding is much better
einstein1969
- 02 Feb 2014 11:17
- Forum: DOS Batch Forum
- Topic: I need help copying only certain bytes to a new file.
- Replies: 4
- Views: 4796
Re: I need help copying only certain bytes to a new file.
@penpen
missing skip = 1 in for?
@josephf
that has the file size?
einstein1969
missing skip = 1 in for?
@josephf
that has the file size?
einstein1969
- 30 Jan 2014 10:27
- Forum: DOS Batch Forum
- Topic: Read a file with WHITESPACE separators
- Replies: 0
- Views: 5963
Read a file with WHITESPACE separators
Hi to all, Preamble: I'm really happy with the new development to write the files with any content. I'm working on compression algorithms in real time in dos batch for quite some time and I hope to churn out something with this piece. Recently I'm working on dithering and anti-aliasing and ray-traci...
- 29 Jan 2014 15:49
- Forum: DOS Batch Forum
- Topic: Create nul and all ascii characters with only batch
- Replies: 110
- Views: 113319
Re: Create nul and all ascii characters with only batch
@penpen & dbenham
ok. I did not realize. But now it is more clear.
@aGerman
True!
ok. I did not realize. But now it is more clear.
@aGerman
True!
- 29 Jan 2014 14:03
- Forum: DOS Batch Forum
- Topic: Create nul and all ascii characters with only batch
- Replies: 110
- Views: 113319
Re: Create nul and all ascii characters with only batch
I saw that you are trying to create a binary file that contains the characters.
Why are you using the makecab?
Should not use what you have developed to create an ad hoc binary file?
einstein1969
Why are you using the makecab?
Should not use what you have developed to create an ad hoc binary file?
einstein1969
- 29 Jan 2014 14:01
- Forum: DOS Batch Forum
- Topic: READ/WRITE binary files
- Replies: 31
- Views: 40763
Re: READ/WRITE binary files
thanks you very much carlos.
All that has been developed is very constructive. Writing fast track again via dos is now the target.
I'll try to throw something down even if I do not have much experience. Thanks again to you and to all.
Einstein1969
All that has been developed is very constructive. Writing fast track again via dos is now the target.
I'll try to throw something down even if I do not have much experience. Thanks again to you and to all.
Einstein1969
- 27 Jan 2014 16:37
- Forum: DOS Batch Forum
- Topic: Create nul and all ascii characters with only batch
- Replies: 110
- Views: 113319
Re: createnul.cmd Create a file with the nul character
Hello All! Taking from DT: Another Way to Create a Linefeed Variable and SO: How to Write a Single Space to a Text File , I came up with this little snippet: @echo off & setlocal enableextensions (set lf=^ ) set nl=^^^%lf%%lf%^%lf%%lf% set "lfFile=%tmp%\lf.tmp" set "lfUTF=%tmp%\l...