Search found 16 matches

by Izya Kurvitch
24 Mar 2023 05:51
Forum: DOS Batch Forum
Topic: Read window line from parent cmd without writing to file
Replies: 6
Views: 5214

Re: Read window line from parent cmd

Accordingly to your last test, this should work: for /f "usebackq tokens=5 delims=: " %%i in ('pstat.exe ^| findstr /i "memory"') do echo %%i Note that you changed the "backtit" ("`" character) by apostrophe... If this not works, remove the usebackq option from FOR /F switch. Antonio Of course, it'...
by Izya Kurvitch
23 Mar 2023 15:34
Forum: DOS Batch Forum
Topic: Read window line from parent cmd without writing to file
Replies: 6
Views: 5214

Re: Read window line from parent cmd

Run pmon.exe only and post the results (between code tags, please). Saso Here the first line of the pstat.exe window... others are similar: Pstat version 0.2: memory: 2000000 kb uptime: 1 5:49:06.598 I have positive result with writing to file and then proccessing the line (mistake in 3rd line is c...
by Izya Kurvitch
23 Mar 2023 07:58
Forum: DOS Batch Forum
Topic: How to put inner quotes in outer quotes in "for" loop?
Replies: 17
Views: 44364

Re: How to put inner quotes in outer quotes in "for" loop?

I don't understand what you are trying to do, so I have no idea how to solve your problem. It sounds like you are trying to communicate between different processes, which would require communication via files. I use that technique in my SNAKE.BAT batch game. Buried in that thread is a description o...
by Izya Kurvitch
23 Mar 2023 06:45
Forum: DOS Batch Forum
Topic: Read window line from parent cmd without writing to file
Replies: 6
Views: 5214

Re: Read window line from parent cmd

What happens if you remove the 'start' command? for /f "usebackq tokens=2 delims=: " %i in (`pmon.exe ^|findstr /i "memory"`) do echo %i Saso Nothing. The cursor hangs in the parental window, and the pmon.exe window does not start ... It could be another cmd utility, not necessary pmon.exe. The ide...
by Izya Kurvitch
23 Mar 2023 05:16
Forum: DOS Batch Forum
Topic: Read window line from parent cmd without writing to file
Replies: 6
Views: 5214

Read window line from parent cmd without writing to file

Sholom there! Trying to write 2nd's cmd window's stdout that starts from 1st cmd to a variable but haven't succeed yet... Seems to me that some redirection with "1", "2", "&" must take place, but don't know how to do it... Here's my trying: for /f "usebackq tokens=2 delims=: " %i in (`start /i pmon....
by Izya Kurvitch
22 Mar 2023 14:13
Forum: DOS Batch Forum
Topic: How to put inner quotes in outer quotes in "for" loop?
Replies: 17
Views: 44364

Re: How to put inner quotes in outer quotes in "for" loop?

I am lurking in the shadows. :twisted: Actually I have found another hobby that has been sucking up my time - VCV Rack, a Eurorack modular synth emulator for the computer. I am learning all I can about synthesis, as well as creating patches that play themselves so I can use them as accompaniment fo...
by Izya Kurvitch
07 Jul 2022 11:33
Forum: DOS Batch Forum
Topic: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)
Replies: 12
Views: 17107

Re: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)

Dfswin.exe it's a cmd-version of dfsee.exe which is a generic disk, partition and filesystem utility for maintenance and data-recovery. Yes it's possible to devide this task to several ones but cutten possibilities remind me circumcision... :mrgreen:
by Izya Kurvitch
07 Jul 2022 10:36
Forum: DOS Batch Forum
Topic: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)
Replies: 12
Views: 17107

Re: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)

If you trust me, use the lightweight executable in the attached zip file. It bahaves pretty much the same as the macro code above. That's how you may use it: @echo off &setlocal EnableExtensions EnableDelayedExpansion cd /d "%~dp0" set "hex=" for /f "tokens=1* delims=[]" %%i in ('drivedump.exe "Phy...
by Izya Kurvitch
07 Jul 2022 10:01
Forum: DOS Batch Forum
Topic: How to put inner quotes in outer quotes in "for" loop?
Replies: 17
Views: 44364

Re: How to put inner quotes in outer quotes in "for" loop?

Does anybody know what's happened with Dave and where his pure integral perfect code? :) :?:
by Izya Kurvitch
11 Feb 2022 00:50
Forum: DOS Batch Forum
Topic: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)
Replies: 12
Views: 17107

Re: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)

Doing this in a script is an impressive achievement... But calling the WIN32 APIs directly in C is far more efficient! My old sector.exe tool, available in the System Tools Library , allows dumping disk sectors as hexadecimal, copying them to and from files, etc. I've even used it multiple times to...
by Izya Kurvitch
10 Feb 2022 12:47
Forum: DOS Batch Forum
Topic: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)
Replies: 12
Views: 17107

Re: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)

If you trust me, use the lightweight executable in the attached zip file. It bahaves pretty much the same as the macro code above. That's how you may use it: @echo off &setlocal EnableExtensions EnableDelayedExpansion cd /d "%~dp0" set "hex=" for /f "tokens=1* delims=[]" %%i in ('drivedump.exe "Phy...
by Izya Kurvitch
07 Feb 2022 02:03
Forum: DOS Batch Forum
Topic: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)
Replies: 12
Views: 17107

Re: [How-To] HEX dump raw data of a drive sector (PowerShell hybrid)

Thanks a lot for your answer, but is it possible to realize code without powershell? I haven't it on my computer...)
by Izya Kurvitch
05 Feb 2022 02:01
Forum: DOS Batch Forum
Topic: HEXDUMP.BAT version 2.1 using CERTUTIL
Replies: 3
Views: 12110

Re: HEXDUMP.BAT version 2.1 using CERTUTIL

I've updated the original post to version 2.1 The only change is some minor redesign of the exit process to ensure that temp files are "always" deleted, even if there is an error. Dave Benham Just another good work of you! Is there a way to dump in such way a disk sector number, not a file? I haven...
by Izya Kurvitch
16 Jul 2019 15:49
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 2167884

Re: JREPL.BAT v8.2 - regex text processor with support for text highlighting and alternate character sets

It replaces the text but exits of the script. Thank you very much! JREPL.BAT is a batch script (that just happens to incorporate JSCRIPT). Like any other batch script, you must use CALL JREPL if you want to execute JREPL within another batch script and return. Dave Benham Thank you very much for yo...