DevCon.exe Issue

Kornfan71

New Member
Hi,
I'm attempting to make a batch file that will disable a few of my optical drives (physical BD-RE and DVD-RW and virtual BD-ROM), and another that will re-enable them. I downloaded DevCon, but I'm having issues while testing the program in the command prompt.

I have a Core i7 and Vista x64, but the ia64 program will not work on it, so I'm forced to use the i386 instead. I use an elevated command prompt and locate the device that I wish to disable. I type "devcon.exe disable BLAH" and it tells me that it failed, and that no device was disabled. Am I doing something wrong, or is this utility not compatible with Vista x64? Is there something else I can use to do what I want to do?

Thanks in advance.
 

My Computer

System One

  • CPU
    Intel Core 2 Duo E7400 @ 2.8 GHz
    Motherboard
    Gigabyte GA-EP43-UD3L
    Memory
    2x2 GB DDR2-1066
    Graphics Card(s)
    ATI Radeon HD 3870
    Sound Card
    Realtek On-Board HD Sound/SoundBlaster Audigy 2
    Monitor(s) Displays
    Dell E773C
    Screen Resolution
    1280 x 1024
    Hard Drives
    Seagate ST3120026AS 120 GB;
    Seagate ST3500410AS 500 GB;
    Western Digital WD1200BB 120 GB
    PSU
    Thermaltake W0100RU 500W
    Case
    Antec 900
Devcon is reliant on sinking a driver down into kernel-mode for some of its functionality, and that doesn't work from WoW64 - a 32-bit kernel-mode driver cannot be used with 64-bit Windows under any circumstances. It's square-peg-in-round-hole stuff. IA64 is a completely different architecture so that won't work either.

Under the circumstances, you may need to write (and compile) actual code for what you wish to do, unless you can find another devcon-like utility. I'm not aware of any, for what that's worth.
 

My Computer

Well, I did some extra searching and found the Windows Driver Kit, which has an updated devcon, with a new amd64 executable! Even better: it works! Thanks for your input, though. Much appreciated.
 

My Computer

System One

  • CPU
    Intel Core 2 Duo E7400 @ 2.8 GHz
    Motherboard
    Gigabyte GA-EP43-UD3L
    Memory
    2x2 GB DDR2-1066
    Graphics Card(s)
    ATI Radeon HD 3870
    Sound Card
    Realtek On-Board HD Sound/SoundBlaster Audigy 2
    Monitor(s) Displays
    Dell E773C
    Screen Resolution
    1280 x 1024
    Hard Drives
    Seagate ST3120026AS 120 GB;
    Seagate ST3500410AS 500 GB;
    Western Digital WD1200BB 120 GB
    PSU
    Thermaltake W0100RU 500W
    Case
    Antec 900
Back
Top