without it, the dos window open and shuts before they can see it.

 

 

 

 

 

 

 

 

 

 

Jean-Paul Natola

 


From: [email protected]
Date: Tue, 18 Jun 2013 17:35:07 -0400
Subject: Re: [NTSysADM] running multiple wmic commands on a batch
To: [email protected]

Why does the batch file have start CMD ?


 



 


 
  
  ASB

  http://XeeMe.com/AndrewBaker



  Providing Virtual CIO Services (IT Operations
  & Information Security) for the SMB market…
  
 









On Tue, Jun 18, 2013 at 4:48 PM, J- P <[email protected]> wrote:





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