Search found 503 matches

by carlos
23 Oct 2018 20:37
Forum: DOS Batch Forum
Topic: bin2enc.cmd - Native .CAB & Self-Extracting Scripts
Replies: 10
Views: 10762

Re: bin2enc.cmd - Native .CAB & Self-Extracting Scripts

Hello @CirothUngol: I try process a single file: bin2enc.cmd image.png But it not works. I replaced this: SET count=0 IF NOT EXIST "%~1" GOTO :bin2enc_help FOR /F %%A IN ('DIR /S "%~f1" 2^>NUL ^| FIND /I "File(s)"') DO SET /A "count=%%A" 2>NUL IF %count% EQU 0 GOTO :bin2enc_help with: SET count=0 IF...
by carlos
13 Oct 2018 20:18
Forum: DOS Batch Forum
Topic: b2ev - Bat2Exe eVolved
Replies: 8
Views: 13318

Re: b2ev - Bat2Exe eVolved

Many thanks for this tool. Converters of bat to exe that have the word "Compiler" seems not very reliable, because it not convert the batch script to machine language, it only extract the script to temporal folder and run. It always depends and needs cmd.exe Batch script always are interpreted. Cmd ...
by carlos
10 Oct 2018 06:50
Forum: DOS Batch Forum
Topic: bin2enc.cmd - Native .CAB & Self-Extracting Scripts
Replies: 10
Views: 10762

Re: MakeCab, CertUtil, & Expand... best file embedding?

@CirothUngol maybe you can add option CompressionMemory=21 to the LZX method, it can save more bytes. Maybe is possible dinamycally create two files, one using MSZIP and other using LZX and choose the one that produce less bytes. Or even if you provide old diamond.exe https://www.dostips.com/forum/v...
by carlos
04 Oct 2018 19:58
Forum: DOS Batch Forum
Topic: Reading Passwords Into a .cmd script
Replies: 1
Views: 2728

Re: Reading Passwords Into a .cmd script

Can you try this, is only a idea that myabe can work:

Put on a single file the password in order of mapping:

pass.txt

Code: Select all

abcd
efgh
and process.cmd

Code: Select all

(
net use p: \\[some path] /user:[some domain]\[some ID]
net use q: \\[some path] /user:[some domain]\[some ID]
) < pass.txt
by carlos
30 Sep 2018 20:53
Forum: DOS Batch Forum
Topic: Mazing.cmd - A Visual Maze Generator for WinNT
Replies: 1
Views: 4048

Re: Mazing.cmd - A Visual Maze Generator for WinNT

@CirothUngol:
Is very interesting.
I need choose manually Terminal font for a good display of the characters.
by carlos
23 Sep 2018 16:22
Forum: DOS Batch Forum
Topic: Bodenstrich
Replies: 2
Views: 4056

Re: Bodenstrich

Hello. You can also use the command:

Code: Select all

Bg cursor 0
from my bg utlity: bg39.zip available here: https://github.com/carlos-montiers/cons ... r/releases
by carlos
23 Sep 2018 16:11
Forum: DOS Batch Forum
Topic: BatchGame Sokobox 1.4
Replies: 4
Views: 5648

Re: BatchGame Sokobox 1.4

@CirothUngol: Bg support to windows 10 begin on version 3.5, that fixed a problem on windows 10 related to font function. But Bg version 3.9 also fix a problem related to print function, in which was neccesary convert the oem escape sequences to unicode, it was works okay on windows 8, but not on wi...
by carlos
21 Sep 2018 15:01
Forum: DOS Batch Forum
Topic: BatchGame Sokobox 1.4
Replies: 4
Views: 5648

BatchGame Sokobox 1.4

Hello Round 2012 I published a batch game called Sokobox that used my tool bg, in this same forum. But the code stop working ok on windows 10, mainly because outdated internal code of bg, very old version (2.7) when windows 10 still did not exist. I read yesterday about this old batch game in this p...
by carlos
20 Sep 2018 09:38
Forum: DOS Batch Forum
Topic: Why ~dpf ?
Replies: 9
Views: 12766

Re: Why ~dpf ?

For fun, I enable the debug using the code provided by @npocmaka_ for see how cmd expand %~f0 in the main function and in other function. EnableDebug.cmd //code without new line at end break&(:#) test.cmd @Echo off Setlocal EnableExtensions D: Set "ModuleFileName=%~f0" Call :getModuleFileName Exit /...
by carlos
20 Sep 2018 09:04
Forum: DOS Batch Forum
Topic: Why ~dpf ?
Replies: 9
Views: 12766

Re: Why ~dpf ?

Thanks @sst for the links. After read I prefer the solution of the user MC ND. Thus, the bug can be described as is not safe expand %~f0 in the main function, it should be expanded inside other function. Code located in C:\edit\test.cmd @echo off setlocal enableextensions enabledelayedexpansion D: &...
by carlos
19 Sep 2018 22:25
Forum: DOS Batch Forum
Topic: Why ~dpf ?
Replies: 9
Views: 12766

Re: Why ~dpf ?

Other bug of %~f0 that I found here: https://www.dostips.com/forum/viewtopic.php?t=5057#p29705 Is related when you change the current directory inside the script, the result is different if you called your script with quotes. This is script is located in C:\dev\test2.cmd @echo off Setlocal EnableExt...
by carlos
19 Sep 2018 18:53
Forum: DOS Batch Forum
Topic: Why ~dpf ?
Replies: 9
Views: 12766

Re: Why ~dpf ?

The %~f0 bug is related to extra quotes. This code is in this location: C:\edit\test.cmd @Echo Off Setlocal EnableExtensions Echo %~f0 Echo %~dpf0 Echo %~n0 Echo %~x0 If you call it using full path, but with extra quotes as next: C:\>""c:\edit\test.cmd"" You get: C:\"c:\edit\test.cmd" C:\"c:\edit\te...
by carlos
19 Sep 2018 12:59
Forum: DOS Batch Forum
Topic: consolesoft.com is closing
Replies: 13
Views: 13192

Re: consolesoft.com is closing

@Ed Dyreen My questions is if the antivirus become more noble and do not report as generic false hashes that have different names, to indicate for example console application of few bytes, if the executable is signed by a trusted authority. @siberia-man: Many thanks for provide me the ownership of t...
by carlos
18 Sep 2018 23:12
Forum: DOS Batch Forum
Topic: consolesoft.com is closing
Replies: 13
Views: 13192

Re: consolesoft.com is closing

@siberia-man : I updated things on the site (for posterity) and publish: Bhx 5.7, Bg 3.8, Sha1 1.0.1, Fscreen 1.0.1, And removed Out 1.0 (basically it is the print version of bg) . Is possible update the repository or can you add me as collaborator? @CirothUngol Is really faster. You would be surpri...
by carlos
16 Sep 2018 19:11
Forum: DOS Batch Forum
Topic: consolesoft.com is closing
Replies: 13
Views: 13192

Re: consolesoft.com is closing

Many thanks siberia-man. In the future I would like to be able to sign the executables, although it is a bit expensive. Also publish a new version of bg that I have never published and it becomes a kind of internal command, but for this it is essential to be able to sign the executable. But in the m...