Windows 7 - Remove device using DEVCON.EXE?

Asked By Robert Eriksen on 08-May-07 08:18 AM
When I try to remove a device using DEVCON.EXE it seems to break up the
command in to several independent commands whenever there is a &-sign.

F.ex. I have a USB device with device instance ID:
USB\VID_0529&PID_0001\5&3A341374&0&2

But when I try to remove it this happens:


H:\wsh>devcon hwids USB\VID_0529*
USB\VID_0529&PID_0001\5&3A341374&0&2
Name: Hardlock USB 1.02
Hardware ID's:
USB\Vid_0529&Pid_0001&Rev_0100
USB\Vid_0529&Pid_0001
Compatible ID's:
USB\Class_ff&SubClass_00&Prot_00
USB\Class_ff&SubClass_00
USB\Class_ff
1 matching device(s) found.

H:\wsh>devcon remove USB\VID_0529&PID_0001\5&3A341374&0&2
No devices removed.
The system cannot find the path specified.
'3A341374' is not recognized as an internal or external command,
operable program or batch file.
'0' is not recognized as an internal or external command,
operable program or batch file.
'2' is not recognized as an internal or external command,
operable program or batch file.


So how do I tell DEVCON.EXE that the &-sign is part of the ID and should
be used to identify and remove the device?


/Robert




victor cheng replied on 30-Oct-08 10:44 PM
Hi Robert,

Do you solve your problem, I have the same question, could you share me your solution.

Thanks,

Victor
Shenan Stanley replied on 31-Oct-08 01:35 AM
Victor,

You started a brand new conversation.  You should quote some of the post you
are supposedly responding to.  ;-)

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
Peter Foldes replied on 01-Nov-08 12:11 AM
victor

I gave my wife $200 for shopping and the problem was solved.

What is your problem and how can we help in solving it

--=20
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

me your solution.=20
Dragomir Kollaric replied on 06-Nov-08 04:58 AM
hm in his headers there was a "reference" so he in fact did reply to
an existing thread or to another post this:


View for Bookmarking (what is this?)

Date: Tue, 08 May 2007 14:18:17 +0200
From: Robert Eriksen <roe@adr.dk>
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Remove device using DEVCON.EXE?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Newsgroups: microsoft.public.windowsxp.hardware
NNTP-Posting-Host: 195.249.218.110
Lines: 1
Path:

When I try to remove a device using DEVCON.EXE it seems to break up
the
command in to several independent commands whenever there is a
&-sign.

F.ex. I have a USB device with device instance ID:
USB\VID_0529&PID_0001\5&3A341374&0&2

But when I try to remove it this happens:


H:\wsh>devcon hwids USB\VID_0529*
USB\VID_0529&PID_0001\5&3A341374&0&2
Name: Hardlock USB 1.02
Hardware ID's:
USB\Vid_0529&Pid_0001&Rev_0100
USB\Vid_0529&Pid_0001
Compatible ID's:
USB\Class_ff&SubClass_00&Prot_00
USB\Class_ff&SubClass_00
USB\Class_ff
1 matching device(s) found.

H:\wsh>devcon remove USB\VID_0529&PID_0001\5&3A341374&0&2
No devices removed.
The system cannot find the path specified.
'3A341374' is not recognized as an internal or external command,
operable program or batch file.
'0' is not recognized as an internal or external command,
operable program or batch file.
'2' is not recognized as an internal or external command,
operable program or batch file.


So how do I tell DEVCON.EXE that the &-sign is part of the ID and
should
be used to identify and remove the device?


/Robert







--

Dragomir Kollaric
--
people  will  be disappointed  to  find  they are  not  it."
Shenan Stanley replied on 03-Nov-08 01:16 PM
He did reply - but he changed the subject line and left out all direct
quoting in the body of his posting.

The conversation in question - started in May 2007:
http://groups.google.com/group/microsoft.public.windowsxp.hardware/browse_frm/thread/ecf709faaa64ebfc/40e324813a92350d?lnk=st&q=#40e324813a92350d

One should not have to go to the headers of the message or look up the
original subject in Google Groups in order to know what the person asking
the question is asking the question about - bad form no matter how you look
at it.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
Walter W. Krijthe replied on 16-Mar-09 07:54 AM
solution is actually simple: wildcards

devcon remove usb\vid_0529*