Welcome to the new GBM Forums. Please note that previously registered members will need to reset your password if this is your first time visiting the new forum. Thank you
-
I recently bought an SD card to use with my laptop. I'd like to be able
to leave the SD card in the slot at all times (otherwise I'd lose it),
but it would be an unnecessary drain on the battery. Is it possible to
quickly enable/disable the slot reader? Going through the clicks to get
to the device manager is a lil annoying.
Thanks
-
I could try to script it if you're interested.
-
admittedly i'd love somethin like that as well.
-
Alrighty then, a challenge it is.
{= )
-
Definitely looking forward to seeing how this turns out. I'd be interested in that script as well... 
-Michael
-
Ok I got the script working. It's going to be using the devcon.exe utility.
I'll post a link to it shortly, i'm trying to post it on my code blog.
stay tuned.
-
Ok it's up. You can check it out here:
http://codescribes.blogspot.com/
if you have any comments/suggestions you can post them in this thread or in the comments on my blog.
Please let me know how this works for you, i have only tested it on Windows Vista on my Lenovo.
**UPDATE: I just noticed that if you run the script on a PC that does not have an SD card reader, it will bomb. I'm trying to add in a better error handle for that.
Edited by: blademonkey
-
This was extremely kind of you to do this, blademonkey. I'm running
winxp tablet edition and wouldnt run under the older os. The exe pops
up an AutoIt Error which reads:
Line 0 (file blah blah location):
If StringInStr($aStatus[2],"running")==1 Then
if StringInStr(^ERROR
Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded.</font>
The exe does in fact install devcon file, but the devcon doesnt appear to do anything. Anyhow I actually will be upgrading to Vista as soon as the semester is over so it's no big deal if you can't get this working for xp, but it sure would be sweet. A big thanks again for offering to do this for us.
-Danny
</font></font>
-
Danny,
is your SD Card Reader internal or external? I'm asking because the script is taylored to look for the SDHost Class on your PC.
Can you run this from a cmd prompt and let me know what output you get:
c:\temp\devcon status =sdhost
Thanks
Edited by: blademonkey
-
The reader is internal on my laptop. I'm not sure if I did the cmd prompt correct, but it says no matching devices found.
(How I entered the prompt: start>run>'cmd' ... then the line looks like this: documents and settings\adminstrator>c:\temp\devcon status =sdhost)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules