command, concat and format the result of multiple list -
i search 2 things
- how concat result of command in file.
- how format result of net in html /format of wmic
i want create command (in bat file) getting information of vm.
sample :
i use wmic , net. wmic product name,vendor,version,description,installdate /format:htable > vm_info.html net localgroup administrators > vm_info.html
the result html file both list.
/format:htable
functionality provided built-in wmic
. wmic
provides while net
commands not. so, formatting output of net localgroup
<html>
isn't possible unless write custom program that.
but, concat results of 1 command quite simple:
wmic product name,vendor,version,description,installdate /format:htable > vm_info.html net localgroup administrators >> vm_info.html
notice >> used in second command.
that's appends output instead of overwriting file.