Search found 501 matches

by carlos
22 Mar 2020 10:00
Forum: DOS Batch Forum
Topic: Make cmd.exe parse piped batch code
Replies: 2
Views: 1754

Re: Make cmd.exe parse piped batch code

Hello. Cmd.exe run code in two modes: - interactive - script some differences between them: interactive not support goto labels and for variables use a single percent character (%) %a vs %%a. Thus you can run some code as pipe to cmd.exe but with limitations, not code expected to run in batch mode, ...
by carlos
21 Mar 2020 20:32
Forum: DOS Batch Forum
Topic: Win10: Move cursor position to 0,0
Replies: 4
Views: 1876

Re: Win10: Move cursor position to 0,0

Hello WiVi71

What about move the cursor to position 0,0 using windows 10 escape sequences. I think is more easy and clear code:

Code: Select all

@ECHO OFF

ECHO LINE 1

FOR /F %%E IN (
'"PROMPT $E &FOR %%_ IN (_) DO REM CURSOR 0 BY @CARLOS"'
) DO <NUL SET /P "=%%E[1;1H"

ECHO LINE 2

PAUSE

by carlos
29 Dec 2019 17:44
Forum: DOS Batch Forum
Topic: Enhanced Batch
Replies: 4
Views: 4242

Re: Enhanced Batch

Interesting project. I've had a brief moment to try this out - I see some very nice features 8) I'm looking forward to the full release with documentation :!: thanks Dave. Minutes ago I updated the documentation in the site related to: - For /f features: option "line" - For shortcuts to For infinit...
by carlos
28 Dec 2019 10:30
Forum: DOS Batch Forum
Topic: measrue elapsed time
Replies: 4
Views: 2203

Re: measrue elapsed time

Hello, have you tried Enhanced Batch? You can measure the time using the extension @timer, as in this example: @Echo off Rundll32 "%~dp0enhancedbatch_%processor_architecture%" load If Not Defined @enhancedbatch ( Echo Load Failed Goto :Eof ) set @delayedexpansion=1 set @echooptions=0 call @timer sta...
by carlos
26 Dec 2019 15:08
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 122
Views: 98542

Re: CONVERTCP.exe - Convert text from one code page to another

Wow, really nice work Steffen.
Thanks for the update, now it a very strong software.
by carlos
26 Dec 2019 11:11
Forum: DOS Batch Forum
Topic: Heads-up: Cmd window now auto-refreshing after every command(?)
Replies: 5
Views: 2417

Re: Heads-up: Cmd window now auto-refreshing after every command(?)

Hello, using Enhanced Batch @image inside a batch script not erase the image while the batch script is running.
by carlos
24 Dec 2019 13:31
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 122
Views: 98542

Re: CONVERTCP.exe - Convert text from one code page to another

Maybe specific code should run only on xp thus the performance to the others platforms will be not affected
by carlos
24 Dec 2019 12:05
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 122
Views: 98542

Re: CONVERTCP.exe - Convert text from one code page to another

Thanks Steffen for the explanation. I never be hear about CESU-8. It would be nice convertcp have code for prevent this bug ocurrs, else I think should be appear in the documentation that utf-8 conversion should not 100% reliable in xp., thus the supported for xp is not real. Really support for xp w...
by carlos
24 Dec 2019 09:54
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 122
Views: 98542

Re: CONVERTCP.exe - Convert text from one code page to another

Convertcp support for xp should be affected for this next (appeared in the documentation of the MultiByteToWideChar function) ? Starting with Windows Vista, this function fully conforms with the Unicode 4.1 specification for UTF-8 and UTF-16. The function used on earlier operating systems encodes or...
by carlos
24 Dec 2019 06:41
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 122
Views: 98542

Re: CONVERTCP.exe - Convert text from one code page to another

Hello Steffen. Nice tool, I always update my archive with the last version, but maybe you can control the source code version in github or gitlab? Is nice see the history for see what lines you changes for the update, and more easy for me for update simply pulling the last changes. Also about xp, is...
by carlos
22 Dec 2019 21:38
Forum: DOS Batch Forum
Topic: Enhanced Batch
Replies: 4
Views: 4242

Enhanced Batch

Hello. I was waiting to publish this later, but I think is better do it now. Is for present to all the users of this forum the project "Enhanced Batch" (abbreviated in this post as EB), developed with my friend Jason Hood. Is a tool wich purpose is "Improve the functionality of your classic Windows ...
by carlos
22 Dec 2019 10:33
Forum: DOS Batch Forum
Topic: DrawTXT.exe graphic animations to run on console and create your 2D games
Replies: 13
Views: 10609

Re: DrawTXT.exe graphic animations to run on console and create your 2D games

Hello @DQ2000, I found this is a nice project related to the goal of write small games using batch. You use an easy of undertand encoding of the image to character, one color character for be used with a "block character". But if you not use a font of 1x1 is possible use a combination of other chara...
by carlos
04 Sep 2019 07:14
Forum: DOS Batch Forum
Topic: Looking for a specific book
Replies: 16
Views: 11198

Re: Looking for a specific book

maybe this:

Code: Select all

https://www.amazon.com/Ultimate-Batch-File-Book-Rom/dp/0079120504
from 1995
by carlos
20 Aug 2019 15:50
Forum: DOS Batch Forum
Topic: Multi-line menu with options selection via DOSKEY
Replies: 15
Views: 18395

Re: Multi-line menu with options selection via DOSKEY

Szecska the replace method was a way of get an input where choice was not present in the windows. I not remeber from which version of windows it was included, maybe windows 8 ? I'm interested anyways in the cause of fail using fat32 filesystem, maybe use: replace "%tmp%\?" "%tmp%\." /u /w will work ?
by carlos
16 Aug 2019 12:18
Forum: DOS Batch Forum
Topic: Call bug using silent operator @
Replies: 2
Views: 3978

Call bug using silent operator @

Developing a project related to batch I found that the CALL internal command has a bug. It not execute the command if you use the silent operator @. For example: @call vol Is different than: call @vol The later not execute the command. This can be used as another way of write a single line comment c...