WMIC.bat file will not export/output properly

前端 未结 1 806
故里飘歌
故里飘歌 2021-01-24 06:48


I am attempting to run a batch file in CMD that includes the following,

wmic csproduct
wmic cpu get name
wmic diskdrive ge

相关标签:
1条回答
  • WMIC output is in unicode. Pipe each wmic output to more.

    > creates a new file.>> creates a new file if one does not already exist and appends to that file if it exists.

    So, the cure would appear to be

    wmic csproduct | more
    wmic cpu get name | more
    wmic diskdrive get model,size | more
    ipconfig /all
    
    0 讨论(0)
提交回复
热议问题