C
C
Cook1eMonsta2021-08-02 20:14:28
JavaScript
Cook1eMonsta, 2021-08-02 20:14:28

How to make html read variables from batch file??

How to make html read variables inside batch file for example %compnumber% computer number.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2021-08-02
@GavriKos

No way. That's real. You can ask the browser something, but no one will give you the environment variables. Otherwise, it's a cap.

R
res2001, 2021-08-03
@res2001

You replace a certain code string in the HTML file with the value of the environment variable, save it to a new temporary file and open it in the browser. What to substitute is a matter of technique, I would probably use sed. There will be such a two-line batch file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question