Read file output into a variable -


i have output of file make varabile in batch program. how go doing this? take output of this, php file.php , put variable named %this%. how do that?

[edit] removed tags, question meant provide example batch variable handling only. fact used php example, python file i'm reading output from, or regular executable.

for /f "delims=" %%x in ('php file.php') set "this=%%x" 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -