tl;dr:
Does anyone perhaps know how programmatically to tell the OS to
re-initialize an USB stick (so it becomes aware of newly created,
removed or resized volumes etc.) ?
For Windows (cmdline) there's
RemoveDrive
Homepage: http://www.uwe-sieber.de/drivetools_e.html
he also has a restart
Another option:
C++ code source for USB device ejecting can be had from http://www.withopf.com/tools/deveject/
but I don't think there's restart code in there.
John,
For Windows (cmdline) there's
RemoveDrive
Homepage: http://www.uwe-sieber.de/drivetools_e.html
he also has a restart
Another option:
C++ code source for USB device ejecting can be had from
http://www.withopf.com/tools/deveject/
Thanks. I've downloaded the C++ code and will take a peek to see how
they are dooing it.
but I don't think there's restart code in there.
Maybe I've not used the right term for it.. How else can I partition
a drive (USB or not), format it and use it directly afterwards without needing to restart the OS ? As some point the OS needs to be made
ware of the changes ...
Regards,
Rudy Wieser
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 415 |
Nodes: | 16 (2 / 14) |
Uptime: | 105:53:14 |
Calls: | 8,692 |
Calls today: | 1 |
Files: | 13,250 |
Messages: | 5,948,272 |