Search found 774 matches

by einstein1969
03 Oct 2016 10:46
Forum: DOS Batch Forum
Topic: BinToBat.bat - Easily install files of any type or size!
Replies: 25
Views: 15890

Re: BinToBat.bat - Easily install files of any type or size!

I think that is possible create a file using this alternte method.
by einstein1969
01 Sep 2016 08:34
Forum: DOS Batch Forum
Topic: Creating a script to gather PC information - to assist those asking for help
Replies: 157
Views: 41009

Re: Creating a script to gather PC information - to assist those asking for help

In the past I have gather some information in a script, specially for fonts information @echo off ::: ritrovo i codepage di default. (locale settings) ::: https://technet.microsoft.com/en-us/library/cc976084.aspx @echo off &setlocal set OS set PROCESSOR_ARCHITECTURE set PROCESSOR_IDENTIFIER set ...
by einstein1969
07 Jul 2016 11:08
Forum: DOS Batch Forum
Topic: error in date time calculations
Replies: 18
Views: 4119

Re: error in date time calculations

Thanks for the solutions But using all, I get the problem when origen beginning date (example year:month/time) 2016/12 23:09:08,33 and the end time is greater in date, and less in time example 2017/01 09:08:09,54 When the process runs by night and pass midnight In this case, is there some solution ...
by einstein1969
30 Jun 2016 13:54
Forum: DOS Batch Forum
Topic: error in date time calculations
Replies: 18
Views: 4119

Re: error in date time calculations

strange negative result... when you test use "echo on" for debug porpouse. Than post here. This is a variation that ROUND the centisecond results to second: @echo off rem start time watch set t1=%time: =0% rem do some work..... timeout 4 rem calculate second elapsed for /F "tokens=1-8...
by einstein1969
30 Jun 2016 09:53
Forum: DOS Batch Forum
Topic: error in date time calculations
Replies: 18
Views: 4119

Re: error in date time calculations

this calculate seconds: rem start time watch set t1=%time: =0% rem do some work..... rem calculate second elapsed for /F "tokens=1-8 delims=:.," %%a in ("%t1%:%time: =0%") do set /a "a=(((1%%e-1%%a)*60)+1%%f-1%%b)*6000+1%%g%%h-1%%c%%d, a+=(a>>31)&8640000, a/=100" ec...
by einstein1969
28 Jun 2016 13:59
Forum: DOS Batch Forum
Topic: error in date time calculations
Replies: 18
Views: 4119

Re: error in date time calculations

The error is on calculous. post the code that calculate elapsed time. I use this and this is error free. rem start time watch set t1=%time: =0% rem do some work..... rem calculate centisecond elapsed for /F "tokens=1-8 delims=:.," %%a in ("%t1%:%time: =0%") do set /a "a=(((1...
by einstein1969
28 Jun 2016 08:00
Forum: DOS Batch Forum
Topic: CmdRunner - 3d game (CubeRunner clone)
Replies: 44
Views: 13413

Re: CmdRunner - 3d game (CubeRunner clone)

For achieve major performnce you can do this: 1 - Use one set/A using comma separator instead using set/A&set/a&.... 2 - Using a for /L %%. () do for a loop instead using GOTO :label 3 - Do not execute every time cmdgfx. manage input into cmdgfx or use a parallel process. Look at work done ...
by einstein1969
26 Jun 2016 11:22
Forum: DOS Batch Forum
Topic: CmdRunner - 3d game (CubeRunner clone)
Replies: 44
Views: 13413

Re: CmdRunner - 3d game (CubeRunner clone)

Archive updated. I was looking at a 3d batch script by einstein1969,and found the line: for /F "Tokens=1 delims==" %%v in ('set') do set "%%v=" Clever little thing, and amazing how much it speeds things up to clean the environment from variables! So I tried it for this game and ...
by einstein1969
18 Jun 2016 13:03
Forum: DOS Batch Forum
Topic: FC.EXE: Is there a faster alternative?
Replies: 11
Views: 3238

Re: FC.EXE: Is there a faster alternative?

Seem that you have a lot of memory.

Try to use the SMARTDRV.exe

EDIT:
try this code :

Code: Select all

   %FC% /b %1 %2 >out.txt
   %FIND% "FC: no differences encountered" out.txt >nul


einstein1969
by einstein1969
17 Jun 2016 14:45
Forum: DOS Batch Forum
Topic: FC.EXE: Is there a faster alternative?
Replies: 11
Views: 3238

Re: FC.EXE: Is there a faster alternative?

Thanks, einstein1969, for you speedy reply. If your fc is outer a cicle for, you can try to optimize floppy access using the command BUFFERS and FILES in your config.sys I'm afraid I'm not very tech savvy so I don't understand what "outer a cicle for" means. What values would you suggest ...
by einstein1969
17 Jun 2016 13:36
Forum: DOS Batch Forum
Topic: FC.EXE: Is there a faster alternative?
Replies: 11
Views: 3238

Re: FC.EXE: Is there a faster alternative?

If your fc is outer a cicle for, you can try to optimize floppy access using the command BUFFERS and FILES in your config.sys
by einstein1969
17 Jun 2016 13:16
Forum: DOS Batch Forum
Topic: FC.EXE: Is there a faster alternative?
Replies: 11
Views: 3238

Re: FC.EXE: Is there a faster alternative?

The FC utility is fast if used outer a FOR cicle. Can you post your code that use FC?

Einstein1969
by einstein1969
16 Jun 2016 10:35
Forum: DOS Batch Forum
Topic: missing operand on SET/A
Replies: 14
Views: 3067

Re: missing operand on SET/A

@aGerman
the offset is used for calculate a SIN value. I'll probe your suggest, even I have seriuos problem with my mind. I develop one line every 4-5week.

@foxidrive
Yuo are correct. Is the new core of dos batch 3D raycast. I hope to double or triple the speed with this algorithm.
by einstein1969
15 Jun 2016 15:53
Forum: DOS Batch Forum
Topic: missing operand on SET/A
Replies: 14
Views: 3067

Re: missing operand on SET/A

thanks squashman, thanks aGerman.