command, concat and format the result of multiple list -


i search 2 things

  1. how concat result of command in file.
  2. 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.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -