Results 1 to 15 of 15

Thread: [RESOLVED] This may be a tough question for the gurus

  1. #1

    Thread Starter
    Addicted Member habenero's Avatar
    Join Date
    Aug 2015
    Posts
    217

    Resolved [RESOLVED] This may be a tough question for the gurus

    Is there a way - code wise (VB6)- that can turn off a USB device remotely

    Jeff

    Stay safe

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    22,825

    Re: This may be a tough question for the gurus

    Is the USB device on a second Windows PC?

    Same network, or across the Internet?

    Turn off? In what sense? Eject a mass storage device? Or?

  3. #3

  4. #4

    Thread Starter
    Addicted Member habenero's Avatar
    Join Date
    Aug 2015
    Posts
    217

    Re: This may be a tough question for the gurus

    legit question

    the usb device is on the same desktop

    and I guess code to eject the USB device would be incorporated also

    dont want the code written for me just point me in a Helpful way

    thanks

  5. #5
    Frenzied Member
    Join Date
    Nov 2017
    Posts
    1,657

    Re: This may be a tough question for the gurus

    In your original question you used the word "remotely", and now you are saying the usb device is on the same desktop. So right off the bat you seem to be contradicting yourself.

    Maybe you need to explain in more than one or two sentences exactly what the goal is and what the device connection configuration is, so that people here don't need to try to guess what exactly you are asking about.

  6. #6

    Thread Starter
    Addicted Member habenero's Avatar
    Join Date
    Aug 2015
    Posts
    217

    Re: This may be a tough question for the gurus

    ok - remotely was a bad choice of words - the USB device is only connected to the desktop - no network - just USB connection

    in my Org thread I stated to turn off a USB device

    I know I didn't make myself clear on the physical location of the device

    in fact I don't think it can be accomplished - I just want to know if it is possible for those well versed in VB6
    Last edited by habenero; Sep 10th, 2020 at 03:23 PM.

  7. #7
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    13,694

    Re: This may be a tough question for the gurus

    So are you really looking for a way to turn a device off or are you looking for a way to disconnect the device. There are many different things that can be plugged into a USB port and many of those do not have an off feature and many of those that do it is mechanical and can't be done programmatically without additional hardware.

  8. #8

    Thread Starter
    Addicted Member habenero's Avatar
    Join Date
    Aug 2015
    Posts
    217

    Re: This may be a tough question for the gurus

    turn the device OFF

    in my 1st post I said off

    its ok

    I marvel at the expertise of the posters (or solvers on the this site) again just to turn the device off

  9. #9

    Thread Starter
    Addicted Member habenero's Avatar
    Join Date
    Aug 2015
    Posts
    217

    Re: This may be a tough question for the gurus

    thanks data - just a dumb unclear question

    solved

  10. #10
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,392

    Re: This may be a tough question for the gurus

    Quote Originally Posted by habenero View Post
    solved
    Forum netiquette expects that when someone solves a problem that previously asked, he tells how he solved. In this case it may involve posting the code that you used so when someone else in the future comes to this thread looking for a solution for the same problem, finds your solution.
    It's not just about receiving, it's also about giving.

  11. #11
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,468

    Re: [RESOLVED] This may be a tough question for the gurus

    I am old, and may be soon on my deathbed.
    I could be tossing and turning there (on the deathbed), trying to solve what you meant by
    turn the device OFF
    I could pass away smoother if I new what you really meant.
    Perhaps did you mean 'Eject the USB drive' ?
    If you did, then this may assist (future readers, if not you) -
    Properly Eject CD/DVD and USB Drives Safely
    https://www.vbforums.com/showthread....-Drives-Safely

  12. #12
    PowerPoster
    Join Date
    Feb 2017
    Posts
    3,392

    Re: [RESOLVED] This may be a tough question for the gurus

    Quote Originally Posted by Bobbles View Post
    I am old, and may be soon on my deathbed.
    I've read that several times from you, and just an advice: unless you really are willing that to happen, I suggest not to say that all the time (or ever). Because the things we decide in our mind to happen, and more if we proclaim (express) them, they end up happening. We decide more than we think.

    Also, even negative things that we sometimes say "just kidding", may be not totally harmless, because our mind is a bit dumb and "hears" them, and they can go inside the deep and end up believing that thing and deciding to happen.

    Just an advice, take it or leave it.
    I'm not saying it because it bothers to me.

  13. #13

    Thread Starter
    Addicted Member habenero's Avatar
    Join Date
    Aug 2015
    Posts
    217

    Re: This may be a tough question for the gurus

    data miser gave me a very obvious way of it being solved...it CANT! and thats ok

    I will leave the hornets nest and put away the stick

    I value the replies here that I want or others need (I threw a nebulous question out there to see if there was a solution)

  14. #14
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,374

    Re: This may be a tough question for the gurus

    Well, I think perhaps the wording was a bit misleading, because turning a device off is not the same as turning the power off to a device.
    Perhaps what you are asking is if there is a way to turn off the power the USB provides to the device, but that hasn't been made clear.

    There are USB implementations that do support that, and it may be a required part of the USB 3.2 standard, but I don't know for sure.
    Last edited by passel; Sep 11th, 2020 at 10:29 AM.
    "Anyone can do any amount of work, provided it isn't the work he is supposed to be doing at that moment" Robert Benchley, 1930

  15. #15

    Thread Starter
    Addicted Member habenero's Avatar
    Join Date
    Aug 2015
    Posts
    217

    Re: [RESOLVED] This may be a tough question for the gurus

    passel I agree 100% with you

    this would be USB 2.0

    but again the issue is moot

    and thats fine

    Jeff

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width