Home > Net >  Custom Format for wmic output in BATCH (CMD)
Custom Format for wmic output in BATCH (CMD)

Time:03-30

How to put a custom format for wmic output in batch ?

before everything to start, i wan't to say that i'm not english and that my text will be bad lmao

Hello, i'm a batch beginner and i would like to make a custom output format for wmic

Exemple :

1# Memory Name : Corsair

2# Memory Name : Kingston

3# Memory Name : Corsair

4# Memory Name : Kingston

the problem is that my code will show only the latest memory name like i have 4 chip of memory but it will only show me one of them

Exemple :

1# Memory Name : Corsair

but i don't really know how would i be able to do what i want with a custom output format

if you need the actual code :

wmic memorychip get manufacturer /value | findstr /r /v "^$" > manufacturer & wmic memorychip get capacity /value | findstr /r /v "^$" > capacity & set /p manufacturer=<manufacturer&set /p capacity=<capacity
set memory%manufacturer%&set memory           
  • Related