It is currently March 28th, 2024, 11:14 pm

Tool to remove USB drives

General topics related to Rainmeter.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Tool to remove USB drives

Post by eclectic-tech »

"Late to your party!" :D

Have you looked at UDisk by cfixd?

He created a Rainmeter plugin and example skin to work with USB discs.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Tool to remove USB drives

Post by balala »

eclectic-tech wrote:Have you looked at UDisk by cfixd?
No, I haven't, but definitely will. Thanks for the tip and link.
Probably a plugin would be even better then an exe, so I'll take a look.
Thanks again eclectic-tech.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Tool to remove USB drives

Post by balala »

eclectic-tech wrote:"Late to your party!" :D

Have you looked at UDisk by cfixd?
Later, but the more useful.

Thanks eclectic-tech for your very useful tip. UDisk seems perfect for my needs, being much better then the apps I checked before, so probably I'll use this one.
Thanks again.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Tool to remove USB drives

Post by eclectic-tech »

Glad to point you in the direction :welcome: ...

Sometimes it pays to search through the older posts.
You never know what you may find, that's how I found UDisk!
:D
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Tool to remove USB drives

Post by balala »

eclectic-tech wrote:Sometimes it pays to search through the older posts.
You never know what you may find, that's how I found UDisk!
:D
Right! At this point, you was successful, good find, UDisk seems great for now. I'm continuously testing it, but looks good.
User avatar
raiguard
Posts: 660
Joined: June 25th, 2015, 7:02 pm
Location: The Sky, USA

Re: Tool to remove USB drives

Post by raiguard »

balala wrote:Right.

I checked this one, too. The only disadvantage of it is that it has two different versions for x86 and x64 systems, so when I'll publish my skin, I'll have to add measures to use the proper version. Not impossible, but I'd like to avoid this.
Anyway thanks for the info.
I just implemented this into my suite, and using the x86 version on 64-bit systems works just fine. You don't actually need to use both.
”We are pretty sure that r2922 resolves the regression in resolution caused by a reversion to a revision.” - jsmorley, 2017
NegativeIQ
Posts: 22
Joined: May 7th, 2016, 12:56 am

Re: Tool to remove USB drives

Post by NegativeIQ »

Quick googling gave me these command (yeah for cmd.exe)

Code: Select all

Rundll32 Shell32.dll,Control_RunDLL HotPlug.dll
If that is not what you are looking for then DevCon is best coice since it is official microsoft tool, and it works on windows 2000 or newer and you wont believe it but its open source!

If you only need binary then these is for you (quoted from page above):

Code: Select all

DevCon (Devcon.exe) is included when you install the WDK, Visual Studio, and the Windows SDK for desktop apps
or simply compile it from the source code...
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Tool to remove USB drives

Post by balala »

raiguard wrote:I just implemented this into my suite, and using the x86 version on 64-bit systems works just fine. You don't actually need to use both.
Sorry for the very late reply, I just came home from my first holiday of this year.
Yes, probably the x86 version works well even on the 64 bits systems, but I'd prefere to include both versions and use the correct one. But this question has no more too much importance, because I finally decided to use the UDisk, which is a plugin, developed by cfixd and as such, the skin installer will install the proper version.
Thanks anyway for the information.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Tool to remove USB drives

Post by balala »

NegativeIQ wrote:Quick googling gave me these command (yeah for cmd.exe)

Code: Select all

Rundll32 Shell32.dll,Control_RunDLL HotPlug.dll
Thanks NegativeIQ, this indeed isn't what I was looking for. It opens the window which allows removing the devices, but I'd like to remove them silently.
NegativeIQ wrote:If that is not what you are looking for then DevCon is best coice since it is official microsoft tool, and it works on windows 2000 or newer and you wont believe it but its open source!

If you only need binary then these is for you (quoted from page above):

Code: Select all

DevCon (Devcon.exe) is included when you install the WDK, Visual Studio, and the Windows SDK for desktop apps
or simply compile it from the source code...
Thanks again, but as I wrote above, after eclectic-tech's suggestion, I finally will use the UDisk plugin, which works very well and also identifies well the external hard drives.
Thanks anyway for your efforts to find a good solution.