Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

output of cmd in command prompt as key and vaule in properties file

$
0
0

hi,

i want to get the value of any command which i run using cmd in a properties file as a key and value rather then getting it in text file

for example - hostname>output.txt   [not good], i want it to be like hostname>output.properties with a key and its value as output.

command - `hostname`

output - userpc

but i want the same output in a properties file like

xyzkey=userpc   in sample.properties file.

it would be a great help.

thanks


sid


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>