AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dump the USB devices 2 a TXT

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
itayzoro



Joined: 23 Jan 2008
Posts: 22

PostPosted: Mon Jan 28, 2008 2:19 pm    Post subject: Dump the USB devices 2 a TXT Reply with quote

i there a way 2 Dump USB devices 2 a TXT or other Hardware without use of 3 Party software?
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 722
Location: Florida

PostPosted: Tue Jan 29, 2008 6:13 am    Post subject: Reply with quote

I'm not sure if I understand the question - What are you trying to do, exactly?
_________________
[Join IRC!]
Back to top
View user's profile Send private message
raven-gm



Joined: 25 Mar 2007
Posts: 24

PostPosted: Tue Jan 29, 2008 6:47 am    Post subject: Re: Dump the USB devices 2 a TXT Reply with quote

itayzoro wrote:
i there a way 2 Dump USB devices 2 a TXT or other Hardware without use of 3 Party software?


I think he wants a list of the currently plugged in usb devices. I assume it's possible but I do not know the DLL call.
Then you would just FileAppend it, I think.
_________________
I would like to think that I know what I'm doing, but there's just to much stuff I've yet to learn...
Back to top
View user's profile Send private message AIM Address
itayzoro



Joined: 23 Jan 2008
Posts: 22

PostPosted: Tue Jan 29, 2008 8:58 am    Post subject: Reply with quote

Raven thats what i need
but Dump of the all Hardware could do the job
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 722
Location: Florida

PostPosted: Tue Jan 29, 2008 4:43 pm    Post subject: Reply with quote

DriveGet will do what you need, I think. (Probably using the REMOVABLE flag)
http://www.autohotkey.com/docs/commands/DriveGet.htm
Edit: I misread what you were looking for - That would give you a list of USB drives, but not all USB devices. I'll try and see if there's something else that will work...
Edit2: Check this out - There must be a DLL call you can make to return attached USB devices and information about them... Maybe check MSDN?
Edit3: I updated the link above to the author's website - Maybe this info is read from the registry?
_________________
[Join IRC!]


Last edited by Rhys on Tue Jan 29, 2008 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
BoBo¨
Guest





PostPosted: Tue Jan 29, 2008 4:57 pm    Post subject: Reply with quote

Have you hugged your Search today? Rolling Eyes [Device Management]
Back to top
itayzoro



Joined: 23 Jan 2008
Posts: 22

PostPosted: Tue Jan 29, 2008 5:34 pm    Post subject: Devcon Reply with quote

Devcon is good Idea 4 this BUT ITS NOT BUILD IN XP so is there anyway 2 Append it into the script and compile 2 1 EXE file

if so plz hlp

BTW this is the script Work gr8 2 find Which touch i use :

#NoTrayIcon
#SingleInstance, Force
RunWait,%comspec% /c devcon find usb\* > C:\usb.txt,,Hide
Fileread, usblist, C:\usb.txt
Filedelete, C:\usb.txt
Loop, Parse, usblist, `n, `r %A_Space%
{
IfInString, usblist,Elo TouchSystems 2216 AccuTouch® USB Touchmonitor Interface
msgbox,Elo
IfInString, usblist,Touch Driver
msgbox,One Touch
IfInString, usblist,USB Touchscreen Controller(Universal)
msgbox,Eturbo NEW
IfInString, usblist,Touchkit USB
msgbox,Eturbo OLD
break
}
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jan 29, 2008 5:46 pm    Post subject: Reply with quote

Code:
RunWait,%comspec% /c devcon find usb\* > C:\usb.txt,,Hide

Finally you got it!!
haleluia!!!
Back to top
itayzoro



Joined: 23 Jan 2008
Posts: 22

PostPosted: Tue Jan 29, 2008 6:31 pm    Post subject: Reply with quote

My dear Guest devcon Work but IPCONFIG DOESNT WORK whats hpnd i got the cursor move to START --> run --> and type CMD then ipconfig enc... THIS IS RECORD NOT SCRIPT
try it ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group