Home > Net >  BATCH: Variable set by for loop ends up being blank
BATCH: Variable set by for loop ends up being blank

Time:04-02

I am trying to run the following script

@ECHO OFF
FOR /F "Skip=1 Tokens=*" %%G IN ('WMIC COMPUTERSYSTEM GET Manufacturer') DO (SET "DeviceOEM=%%G")
ECHO OEM:            
  • Related