Search found 60 matches

by lazna
03 Aug 2022 04:15
Forum: DOS Batch Forum
Topic: printf.exe: Arithmetic and Programming
Replies: 23
Views: 55085

Re: printf.exe: Show formatted output AND evaluate arithmetic expressions!

Dealing with RRDTool on windows reading `rrdtool fetch` command which outputting numbers in "scientific notation". Found such link https://www.unix.com/302949386-post1.html when trying to convert if to human readable numbers, but AWK have problems with doublequotes escaping on windows. But when I se...
by lazna
22 May 2022 14:18
Forum: DOS Batch Forum
Topic: BG kbd - always present key except letter one
Replies: 5
Views: 4875

Re: BG kbd - always present key except letter one

thats it!

I cant realize enter key use is possible, but it does work!

thanks, L.
by lazna
20 May 2022 16:46
Forum: DOS Batch Forum
Topic: BG kbd - always present key except letter one
Replies: 5
Views: 4875

Re: BG kbd - always present key except letter one

Its a technical tool, for such purpose expecting querty (or similar) keyb is far enough. I have not ambitions to make it working on ANY computer
by lazna
20 May 2022 12:20
Forum: DOS Batch Forum
Topic: BG kbd - always present key except letter one
Replies: 5
Views: 4875

BG kbd - always present key except letter one

Have part of large script which print lines of items to screen and users have to choose one them by press key of assigned letter. Number of lines vary, all alphabete letters may be occupied. There should be two more options except choosing some items in the menu: (b)ack and (q)uit. Convention used i...
by lazna
16 May 2022 06:40
Forum: DOS Batch Forum
Topic: start GUI program from non-interactive session
Replies: 6
Views: 5222

Re: start GUI program from non-interactive session

Already solve monitoring of started printing task: As anything else do not acccess printer on this machine but my script, processing output of following command powershell.exe "Get-WinEvent -MaxEvents 4 -FilterHashTable @{ LogName = 'Microsoft-Windows-PrintService/Operational'; ID = 800,801,805,307}...
by lazna
15 May 2022 16:51
Forum: DOS Batch Forum
Topic: start GUI program from non-interactive session
Replies: 6
Views: 5222

Re: start GUI program from non-interactive session

SOLVED:

Create Scheduled task and start it via 'schtasks /RUN' solve this isssue.
by lazna
12 May 2022 03:24
Forum: DOS Batch Forum
Topic: start GUI program from non-interactive session
Replies: 6
Views: 5222

start GUI program from non-interactive session

Have set of batch scripts powered CGI based web system, web server running under SYSTEM account. As result of one script, physical document should be printed. Because of document layout, I choosed program https://github.com/kendallb/PrintHtml for printing, it starting fom console with parameters. Th...
by lazna
12 May 2022 03:06
Forum: DOS Batch Forum
Topic: hextostr.exe - convert a passed HEX string into a string of characters
Replies: 2
Views: 3769

Re: hextostr.exe - convert a passed HEX string into a string of characters

thanks @aGerman,

just tested in complex script where HEX_2_STR conversion is done 20 times, and your program is a very little faster than XXD use (6.1 vs 6.2 seconds).
by lazna
08 May 2022 09:34
Forum: DOS Batch Forum
Topic: printf.exe: Arithmetic and Programming
Replies: 23
Views: 55085

Re: printf.exe: Show formatted output AND evaluate arithmetic expressions!

thanks. Found xxd.exe in the meantime, which do the job well

echo %hex_string% | xxd.exe -r -p

https://sourceforge.net/projects/xxd-for-windows/
by lazna
08 May 2022 04:34
Forum: DOS Batch Forum
Topic: printf.exe: Arithmetic and Programming
Replies: 23
Views: 55085

Re: printf.exe: Show formatted output AND evaluate arithmetic expressions!

this is ineffective for long strings, parsing network packets which could contain a hundreds of characters
by lazna
06 May 2022 03:32
Forum: DOS Batch Forum
Topic: printf.exe: Arithmetic and Programming
Replies: 23
Views: 55085

Re: printf.exe: Show formatted output AND evaluate arithmetic expressions!

Need to convert HEX string to ascii, is this tool usable for such purpose? Now employing powershell, but its too slow

thanks
by lazna
26 Mar 2022 15:02
Forum: DOS Batch Forum
Topic: optional debug method
Replies: 3
Views: 4346

Re: optional debug method

thanks for reply.

I do not specify any parsing options because this should be only example how I plane to employ tee command.

Raw commandchain output is exactly what I need, because it provide me possibility to perform tests on captured sample, and possibly improove parsing in next version.
by lazna
25 Mar 2022 06:02
Forum: DOS Batch Forum
Topic: optional debug method
Replies: 3
Views: 4346

optional debug method

Have large redistributional (zipfile with .cmd file and few bundled console utilities) batch script, where many times commands are processed in FOR loop with its output parsing. Informations readed by command are often HW (drivers) based so output may vary case by case unpredictible. Thinking about ...
by lazna
04 Jan 2022 05:34
Forum: DOS Batch Forum
Topic: run script from STDIN
Replies: 1
Views: 1888

run script from STDIN

Is there any way to run batch from STDIN/pipe? In linux, there is a possibility to run scripts without save it to disc first:

Code: Select all

curl http://exmaple.com/run.sh |sudo bash
Is something similar possible with batch files?
by lazna
18 Nov 2020 04:39
Forum: DOS Batch Forum
Topic: BHX 5.6 now with great encoding
Replies: 7
Views: 11325

Re: BHX 5.6 now with great encoding

Utilizing BHX 5.6 for some time, but now I add move command just behind the 'call :rebuild' to move rebuilded binary into the %temp% path, but Microsoft defender stopping action reporting "Trojan:Script/Wacatac.B!ml". Is it possible to extract binaries directly to specific directory? There is no suc...