Have CMD file eject usb drive ... and prevent Windows from making that drive available during boot

Discussion in 'General Discussion' started by jepollard, May 16, 2017.

  1. jepollard

    jepollard

    Joined:
    May 16, 2017
    Messages:
    1
    Likes Received:
    0
    I have a CMD file that does a backup of selected files from my hard drive to a USB drive of my choice (the CMD file asks me to enter the drive letter).

    I'd like to have the CMD file automatically eject the USB drive when the backup is complete. And I would like to prevent Windows from automatically "recognizing" that drive the next time I boot Windows.
    [Currently, I manually eject the drive after the backup, but when I turn on the computer the next day, Windows "un-ejects" it. I'd like the drive to remain inaccessible until I manually remove it and re-insert it.]

    Is this possible. If so, how?
     
    jepollard, May 16, 2017
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. auutumn

    Issues with DigitalRiver and making a boot DVD

    auutumn, Oct 23, 2009, in forum: General Discussion
    Replies:
    2
    Views:
    1,909
  2. TreadLight

    Boot Manager Missing/Boot from USB Drive

    TreadLight, Nov 26, 2009, in forum: Windows 7 Support
    Replies:
    1
    Views:
    29,865
  3. teg1545

    move from cmd.exe 32 bit to cmd.exe 64 bit

    teg1545, Oct 12, 2010, in forum: Windows 7 Support
    Replies:
    2
    Views:
    3,444
    teg1545
    Oct 12, 2010
  4. jaguar85

    Classpnp.sys, black screen during startup repair and during boot

    jaguar85, Dec 20, 2011, in forum: Crashes, BSODs and Debugging
    Replies:
    2
    Views:
    3,299
  5. l.hilger

    .bat file and two commands in one cmd line

    l.hilger, Dec 20, 2012, in forum: Windows 7 Support
    Replies:
    9
    Views:
    2,922
    TrainableMan
    Dec 23, 2012
  6. JHaley1971

    How to start and install Windows 7 updates and suggested updates from CMD

    JHaley1971, Jan 30, 2013, in forum: Installation, Setup and Updates
    Replies:
    1
    Views:
    2,189
    oliverpowell
    Mar 18, 2013
  7. Maurizio

    is there any "force eject USB flash even it's un use" ?

    Maurizio, Feb 9, 2013, in forum: alt.windows7.general
    Replies:
    3
    Views:
    845
    Philip Herlihy
    Feb 9, 2013
  8. magicant
    Replies:
    2
    Views:
    1,347
    clifford_cooley
    Jul 13, 2015
Loading...