Remove network adapter windows 7

243 Views Asked by At

Good day to you all. I am a beginner in the batch-file. Why doesn't my code want to work properly? In what direction to dig?

    for /F %%a in ('devcon driverfiles ^=net ^| find "PCI\"') do ( 
        devcon remove %%a
    )

Devcon give an error message

    for /F %%a in ('devcon driverfiles ^=net ^| find "PCI\"') do ( 
       devcon remove PCI\VEN_168C&DEV_0036&SUBSYS_020C1028&REV_01\4&7A7034C&0&00E2 
    )

If you directly set to for, it works correctly, why it happens? Devcon works correctly

0

There are 0 best solutions below