Search found 941 matches

by einstein1969
23 Jan 2014 15:05
Forum: DOS Batch Forum
Topic: Drawing pixel resolution graphics in text mode
Replies: 25
Views: 48486

Re: Drawing pixel resolution graphics in text mode

@if (@CodeSection == @Batch) @then @echo off rem Mandelbrot Set graphic in text mode rem Batch-JScript hybrid version optimized for high resolution screens rem Include "Terminal 1x1.FNT" font file and installation instructions rem Antonio Perez Ayala setlocal EnableDelayedExpansion if &qu...
by einstein1969
21 Jan 2014 07:42
Forum: DOS Batch Forum
Topic: Performance of DOS/WSCRIPT/ETC.
Replies: 0
Views: 5672

Performance of DOS/WSCRIPT/ETC.

Hi to all,

Does anyone know if a comparative table has been drawn up with the performance of the internal instructions of dos and wscript?

einstein1969
by einstein1969
20 Jan 2014 08:09
Forum: DOS Batch Forum
Topic: Drawing pixel resolution graphics in text mode
Replies: 25
Views: 48486

Re: Drawing pixel resolution graphics in text mode

Excuse me. I am afraid I don't understand what you intended to mean with "colorshow.exe... has the disadvantage that is ISA (Istruction Set Architecture) dependent... (depends on x86)". Of course, colorshow.exe program requires an x86 compatible CPU (and Windows OS) in order to run, but t...
by einstein1969
18 Jan 2014 16:27
Forum: DOS Batch Forum
Topic: Drawing pixel resolution graphics in text mode
Replies: 25
Views: 48486

Re: Drawing pixel resolution graphics in text mode

I like pure batch solutions, which pretty much restricts the screen to monochrome if you want reasonable performance. It also requires a CLS and full screen refresh for each animation frame. The more characters per screen, the longer it takes to clear the screen and refresh, which results in more f...
by einstein1969
18 Jan 2014 13:24
Forum: DOS Batch Forum
Topic: Drawing pixel resolution graphics in text mode
Replies: 25
Views: 48486

Re: Drawing pixel resolution graphics in text mode

the initial version is in batch only and using "findstr" trick. If you want do faster you can use "mode" trick and use multiprocessor/core with multithreading batch, tell me about this mode trick, do you have a reference ? or use colorshow.exe with is faster but has the disadvan...
by einstein1969
18 Jan 2014 12:48
Forum: DOS Batch Forum
Topic: Drawing pixel resolution graphics in text mode
Replies: 25
Views: 48486

Re: Drawing pixel resolution graphics in text mode

using cscript jscript? how about one only in DOS batch? the initial version is in batch only and using "findstr" trick. If you want do faster you can use "mode" trick and use multiprocessor/core with multithreading batch, or use colorshow.exe with is faster but has the disadvant...
by einstein1969
18 Jan 2014 11:45
Forum: DOS Batch Forum
Topic: How to get the Logical Block Number or alternative of a file
Replies: 2
Views: 5076

Re: How to get the Logical Block Number or alternative of a

am afraid that I might regret the damage if I try the wrong options the fsutil file queryallocranges and fsutil volume querycluster can be used together for resolve your issue. These are only read option and do not cause problem. You may view the mydefrag project for utility that create a file frag...
by einstein1969
16 Jan 2014 16:50
Forum: DOS Batch Forum
Topic: short paths do not work on windows 8.1 ?
Replies: 6
Views: 6154

Re: short paths do not work on windows 8.1 ?

what is the output of ?

Code: Select all

fsutil 8dot3name query


einstein1969
by einstein1969
13 Jan 2014 18:31
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 61846

Re: Delay-Wait-Sleep tricks.

is possibile to access the timer resolution without external tools : powercfg -energy -xml duration 1 and (i have not created a script at the moment) type energy-report.xml | findstr /N "e5ba7e97-57dd-4378-a022-0b5b3fff3d22" 69 for /F "skip=69" %%f in (energy-report.xml) do @echo...
by einstein1969
13 Jan 2014 08:11
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 61846

Re: Delay-Wait-Sleep tricks.

Another article that may prove useful: m Dave Benham thanks. This article is interesting and it made me discover this tools http://technet.microsoft.com/en-us/sysinternals/bb897568.aspx can be used for confirm. C:\Users\fra\Desktop\tmp>Clockres.exe ClockRes v2.0 - View the system clock resolution C...
by einstein1969
13 Jan 2014 07:55
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 61846

Re: Delay-Wait-Sleep tricks.

With "probably" i didn't mean: It could be that the clock cycle depends on PCI (2.1). It should mean: It has to do with the PCI 2.1 specification. I just don't know if nowadays the clock is located behind a PCI (2.1), or if it is simulated by Windows, using the High Performance Counter of...
by einstein1969
13 Jan 2014 07:10
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 61846

Re: Delay-Wait-Sleep tricks.

It never stops - the iterations figures goes up and then starts again. ok. I need to rewrite the algorithm. It's seem that on load the algorithm is not efficient. I think I have framed the problem, if someone wants to try to give a solution... I assumed that the variable %TIME% is charged by taking...
by einstein1969
12 Jan 2014 11:57
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 61846

Re: Delay-Wait-Sleep tricks.

Hi, can sameone test this script? should detect the real interval timer inside of dos. It is not perfect and should be revised and improved. Once detected the interval can be used for a more accurate calculation of the time returned by the variable %TIME%. Run it several times to get a more accurate...
by einstein1969
11 Jan 2014 17:26
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 61846

Re: Delay-Wait-Sleep tricks.

seem 15,625 ms = 64Mhz There is this clock in specific of PC? I used this to discovery/confirm @echo off & setlocal EnableDelayedExpansion cls rem sync to 00 or 01 :loopm100 if "%time:~-2%" neq "00" if "%time:~-2%" neq "01" goto :loopm100 echo %time% echo(...
by einstein1969
11 Jan 2014 15:53
Forum: DOS Batch Forum
Topic: Delay-Wait-Sleep tricks.
Replies: 64
Views: 61846

Re: Delay-Wait-Sleep tricks.

Hi,

I have investigate on %time%.

The time is incremented every 15 or 16 millisecond.

Can anyone explain why?

This explain why there is a gap between centiseconds.

We can predict the error!

EDIT: the interval is near 15,65 ms

Einstein1969