Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 01, 2015, 05:11:03 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Drop to disconnect  (Read 3481 times)

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Read more about this member.
    • Donate to Member
IDEA: Drop to disconnect
« on: March 08, 2008, 08:33:13 PM »
Anyone familiar with OS X's drag-and-drop interface should know what I am talking about here right off the bat...

What I am looking for is a small program that tells Windows to Safely Remove Hardware when I drag the drive icon onto the program icon.


Ex:

I plug in a drive. Said drive appears in My Computer.
I copy file ABC.exe on drive
I close drive window
I drag drive icon from My Computer onto DropToDisconnect.exe on my desktop
A Windows dialog box appears telling me it is safe to remove the hardware
I remove the drive


Can anyone do this for me? :tellme:


EDIT: And possibly a key-combo that opens a GUI window allowing me to select (multiple, if need be) items to disconnect? That would be really awesome...

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #1 on: March 08, 2008, 08:55:41 PM »
I'm pretty sure there's a solution here on the forum for a VERY similar request.
Unfortunatelly, i couldn't find it.
I did find a related thread, though: IDEA: Useful desktop icon for USB flash drive

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,038
    • View Profile
    • Just for mouser.
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #2 on: March 08, 2008, 09:07:02 PM »
If you can see your desktop, then using Windows default removable drive thingy isn't so bad. Just left click the tray icon once, then select the drive you want to disconnect. Done.

Remove Hardware 1.png

Remove Hardware 3.png

Remove Hardware 4.png

« Last Edit: March 08, 2008, 09:11:20 PM by Deozaan »

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #3 on: March 08, 2008, 09:09:08 PM »
@Deozaan: I know I can left click, but I prefer to hit the large "object" of an icon, rather than have to position my mouse over this 32x32 tray icon. :-\

@jgpaiva: Reading now...

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,038
    • View Profile
    • Just for mouser.
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #4 on: March 08, 2008, 09:41:04 PM »
@Deozaan: I know I can left click, but I prefer to hit the large "object" of an icon, rather than have to position my mouse over this 32x32 tray icon. :-\

Oh yeah, I forgot you like the big icons. :)

I wonder if there is a way to get an AHK script to do what I said for you. Then you could make a big shortcut to the AHK script.


ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #5 on: March 09, 2008, 04:18:20 AM »
I think USB Disk Ejector could be helpful.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #6 on: March 09, 2008, 05:43:21 AM »
ak: Usb disk ejector is a perfect solution!!
I've made an ahk script to do what wreckedcarzz initially asked for:

ejectDrive inside
Code: [Select]
;
; Author:         jgpaiva
; Needs:          USB disk ejector
;
; Script Function:
; ejects a drive that is dragged into it
;

#notrayicon
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

numberOfArgs = %0%
arg1 = %1%

StringLeft,arg1,arg1,1

usbEjector = USB_Disk_Eject.exe                                         

if(numberOfArgs = 1)
  run,%usbEjector% /SHOWEJECT /REMOVELETTER %arg1%
else
  run,%usbEjector% /SHOWEJECT


If you want to not have the usb_disk_ejector.exe on the same folder as ejectDisk, just change its path at the top of the script! ;)

[edit] I forgot to mention: you can disconnect a drive by drag+dropping anything inside the drive onto ejectDrive, it doesn't matter if it's the drive itself or not [/edit]
« Last Edit: March 09, 2008, 05:48:28 AM by jgpaiva »

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #7 on: March 09, 2008, 01:44:22 PM »
 :-* IT WORKS PERFECTLY! :D

Thanks so much jgpaiva, this will be sitting on my desktop permanently now. :Thmbsup:

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Drop to disconnect
« Reply #8 on: March 09, 2008, 03:01:15 PM »
Glad to know that, wreckedcarzz!