Is there a particular reason you want to do this in CMD? It would be easier from WScript or Powershell...