Batch parse devcon.exe -


Currently I have a script that is perfect on Windows 7, using pnputil. This script is looking for specific drivers, and deletes it. /p "token = *" %% for

  B ( "%% a") (If "%% B" similar "Fteediai" (eco delete .....! line 1 Preeri !! Wainder% \ Sisinetiv \ pnputil - F -d! Line1prior!) other ( set "line1prior = %% b"))  

to add I support Win XP do so DevCon is the perfect job but I still parsing the output of devcon.exe There is a problem ... the output is different.

Each row for PnPutul is delimited with ": ", but "* devcon.exe dp_name *" looks different ... can anyone help me?

I used devcon.exe from here:

Try it out:

  @echo offlocal enable the extension / f "tokens = 1 delims = made []:" %% a in ( 'devcon dp_enum ^ | Find / N "FTDI"') ( set / a "line 1 Overseas = %% a-2" for / f "tokens = 1 delims = *" %% b ( 'devcon dp_enum ^ | more +! Line1prior!') to (eco Decon-F Deepi_dilet% % B and goto: out)): Out  

If the output looks correct for actual deletion, then remove the echo.


Comments

Popular posts from this blog

Removing From ArrayList, In Loop Based On It's Size, But Breaking After Remove Still Gives OutOfBounds -

c# - Reactive Extensions ControlScheduler -

java - Add color code support to a Bukkit plugin -