Erm, pipe them both to the same file?

I.E. Command >>c:\file.txt



Sent from my Blackberry, which may be an antique but delivers email RELIABLY

-----Original Message-----
From: J- P <[email protected]>
Sender: [email protected]: Tue, 18 Jun 2013 16:48:36 
To: [email protected]<[email protected]>
Reply-to: [email protected]
Subject: [NTSysADM] running multiple wmic commands on a batch

Hi all,

As way  to quickly retrieve computer serial numbers I have a batch file on the 
server that contains this command ;

start cmd.exe /k  wmiC bios get serialnumber

I want to also add the ability to get the computer name which I can get by 
running this

 wmic computersystem get name

what I can't figure out is how to put them both into a single file so that the 
user can get the name and serial number 


any thoughts  would be appreciated 


thanks
                                          


Reply via email to