Search found 1567 matches

by Ed Dyreen
22 May 2018 18:52
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 8193

Re: Get arguments without temporary file

@echo off &ver &cd call tst.cmd "a!b!c!d!e" pause exit Microsoft Windows XP [versie 5.1.2600] W:\ED\VIP\PROJ\DEV\doskit\doskitXPx86 v20180426\Hello world ! W:\:GetParams:\..\\ED\VIP\PROJ\DEV\doskit\doskitXPx86 wordt niet herkend als een interne of externe opdracht, programma of batchbestand. args: ...
by Ed Dyreen
22 May 2018 11:04
Forum: DOS Batch Forum
Topic: Any other bat to exe converters/wrappers?
Replies: 11
Views: 4484

Re: Any other bat to exe converters/wrappers?

Indeed a nice usecase. :D But when i tried to download it, my "Windows Defender" automatically deletes the file to cure "Trojan:Win32/Fuery.A!cl". Because it is from you i think this probably is a false positive, but i unfortunately can't convince my "Defender" from my point of view (and because he...
by Ed Dyreen
21 May 2018 15:00
Forum: DOS Batch Forum
Topic: How to debug BATCH files
Replies: 5
Views: 2390

Re: How to debug BATCH files

@jfl, I had a quick look at your batch library and read this line: :# FOREACHLINE macro. (Changes the delimiter to none to catch the whole lines.) set FOREACHLINE=for /f "delims=" I tested it with: %FOREACHLINE% %%? in ( ";please preserve this line" ) do echo.?=%%?_ But it fails to produce any outpu...
by Ed Dyreen
21 May 2018 12:24
Forum: DOS Batch Forum
Topic: How to debug BATCH files
Replies: 5
Views: 2390

Re: How to debug BATCH files

Is there a way to "step into" (go line by line) of the code, (I can use "Pause" but this seems like not the best method.) Often you want to debug only a particular function and often only if it is being called from a particular point, for that I programmed various debug functions. Functions could i...
by Ed Dyreen
20 May 2018 19:34
Forum: DOS Batch Forum
Topic: Any other bat to exe converters/wrappers?
Replies: 11
Views: 4484

Re: Any other bat to exe converters/wrappers?

I might miss something, but isn't that the same statement as aGermans: The (unpacked) batch file is (25-50%) faster than the executable (which probably is caused by unpacking the batch file). Beside this i downloaded and tested "Quick Batch File Compiler v3.6.0.0" (because i wasn't sure if i misund...
by Ed Dyreen
19 May 2018 08:40
Forum: DOS Batch Forum
Topic: Any other bat to exe converters/wrappers?
Replies: 11
Views: 4484

Re: Any other bat to exe converters/wrappers?

better performance The reason for uglyninja's question was that he observed bad performance. It's unlikely that it performs better with an additional process for the unpacking of the script than running cmd.exe directly. The latter has to be run anyway. Steffen Quick Batch File Compiler v3.6.0.0 gi...
by Ed Dyreen
19 May 2018 07:14
Forum: DOS Batch Forum
Topic: Any other bat to exe converters/wrappers?
Replies: 11
Views: 4484

Re: Any other bat to exe converters/wrappers?

aGerman wrote:
18 May 2018 17:10
viewtopic.php?p=36858#p36858
No idea why people think they need to wrap Batch scripts into self-extractors.

Steffen
better performance
by Ed Dyreen
22 Apr 2018 19:24
Forum: DOS Batch Forum
Topic: 7 zip command help.
Replies: 5
Views: 2717

Re: 7 zip command help.

ShadowThief wrote:
22 Apr 2018 19:21
I cannot believe that nobody has linked this for you yet: https://sevenzip.osdn.jp/chm/cmdline/
I can, as someone who is exposing trolling behavior will ultimately be ignored by everybody.
by Ed Dyreen
19 Apr 2018 18:34
Forum: DOS Batch Forum
Topic: exit function and preserve variable over endlocal barrier
Replies: 23
Views: 16768

Re: exit function and preserve variable over endlocal barrier

Greetings Dave, I see that during my absence you've made some remarkable improvements to your return function. This line I find of particular interest set "return.var=%return.var:!=!delayed!%" ! I find it odd to see that readtime expansion could succeed if it has nested runtime expansion which based...
by Ed Dyreen
15 Apr 2018 17:54
Forum: DOS Batch Forum
Topic: writing/reading chr[0-255]
Replies: 10
Views: 3453

Re: writing/reading chr[0-255]

This behaviour is explained very well on the microsoft technet page: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/copy I disagree, I understand even less now OR I'm with stupid. If a file containing only a single sub char + a file containing only a single sub char...
by Ed Dyreen
15 Apr 2018 14:28
Forum: DOS Batch Forum
Topic: writing/reading chr[0-255]
Replies: 10
Views: 3453

Re: writing/reading chr[0-255]

Reading and writing HEX values might be easier. It looks simpler and is probably preferred. By the time I've read your post I overcame the scope problem. creating ASCII charMap[0-255] :: ----------------------------------------------------------------------------------------------------------------...
by Ed Dyreen
15 Apr 2018 11:05
Forum: DOS Batch Forum
Topic: Can anyone help on extending a command.
Replies: 31
Views: 10161

Re: Can anyone help on extending a command.

Sorry penpen you confused me. Where do I put that command? its just you saying abut C:/ program files and im talking about C:/ downloads. "C:\Program Files\7-Zip\7z.exe" is the default location of 7zip, you need 7zip to do anything with it, so you need to tell your program which program to run. tha...
by Ed Dyreen
15 Apr 2018 10:42
Forum: DOS Batch Forum
Topic: writing/reading chr[0-255]
Replies: 10
Views: 3453

Re: writing/reading chr[0-255]

loading a single character file which can contain any character form 1 to 255 seems not possible unless the file is first tested to see which character it actually contains. for example, a file containing a single tab cannot be loaded using <13.CHR set /P "$=" variable $ will be empty. Using for /F ...
by Ed Dyreen
15 Apr 2018 08:59
Forum: DOS Batch Forum
Topic: writing/reading chr[0-255]
Replies: 10
Views: 3453

Re: writing/reading chr[0-255]

when I copy a file containing a sub + another file containing a sub in binary mode i get an output with only a single sub. But if i change output to ansi i get a file containing two sub characters ? But then ansi don't work for the other characters. using copy cr + cr in ansi gives a file with a sin...
by Ed Dyreen
14 Apr 2018 22:25
Forum: DOS Batch Forum
Topic: writing/reading chr[0-255]
Replies: 10
Views: 3453

Re: writing/reading chr[0-255]

A little closer setlocal enableDelayedExpansion >nul copy /Y "doskitXPx86 v20180314\lib\charMap\13.CHR" + "doskitXPx86 v20180314\lib\charMap\8.CHR" /B "o.TMP" /B for /F "usebackdelims=;eol=;" %%? in ( "o.TMP" ) do set "$bs=%%?" echo. &set $bs echo.this%$bs%works >nul copy /Y "doskitXPx86 v20180314\l...