0

I've a batch script being triggered by chrome native messaging chrome extension is sending data to it using stdin the whole script does run and I could parse the data I need

The issue is when data is sent from chrome using native messaging it does nothing, (probably the script runs but can't get any data) but when I refresh the chrome extension then I see the data logged into the logg.txt

I'm using this batch script

@echo off
setlocal
set str=
for /F "tokens=*" %%a in ('more') do (
   set str=%str%%%a
)
set str=%str:~9,-2%
set str=%str:\\=\%
echo %str%>>logg.txt

I've seen this question

I want to do it without python and pyinstaller's exe

also seen this question I couldn't understand this one.

  • Why are you attempting to parse the output of the `MORE` command? `MORE` is intended for interactive (human) use, not consumption by other programs. – Ben Scott Nov 17 '22 at 18:20
  • Google Chrome extension native messaging sends data using stdin. I'm not sure what can I use instead of `MORE` – Nadeem Gorsi Nov 22 '22 at 11:20

0 Answers0