VB Script - Unmount USB drive

Posted by user736887 on Stack Overflow See other posts from Stack Overflow or by user736887
Published on 2011-11-21T01:45:05Z Indexed on 2011/11/21 1:51 UTC
Read the original article Hit count: 379

Filed under:
|
|

I have tedious project coming up. I need to insert a usb flash drive into a computer, then copy over three files to that drive, and then unmount it and repeat 3000 times (literally). I was hoping to come up with some VB Script that can reduce my input to just 1.) insert the usb and 2.) double click on the .vbs file and remove the usb flash drive.

I figure it isnt too difficult to come up with the copy and paste part of the code as long as I am inserting the usb into the same port every time. Is this assumption correct? However, the real problem is unmounting/ejecting the usb drive. Is there any simple VB Script code that can accomplish this?

Thank you, -Corey

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about usb