Batch Script shows no output

前端 未结 4 1618
情深已故
情深已故 2021-01-28 14:08

With reference to my previous question and responses received (which can be found here), I am seeking a help regarding a Batch Script. Based on the responses received to above m

4条回答
  •  庸人自扰
    2021-01-28 14:58

    Rebuild your FOR lines to the following syntax:

    FOR /F "tokens=2 delims==" %%i IN ('wmic /node:%1 computersystem get Name /value') DO echo (set A=%%i)
    

    (and obviously remove the echo when the output satisfys you)

提交回复
热议问题